pub enum Ellipsoid {
    WGS84,
    WGS72,
    WGS66,
    WGS60,
    PZ90,
    BDC,
    GRS80,
    Bessel,
    Airy,
    International,
}

Variants

WGS84

WGS84: GPS Ellipsoid frame
semi-major axis: 6378137.0 [m]
flattening: 1.0/298.2572235630

WGS72

WGS72: semi-major axis: 6378135.0 [m]
flattening: 1.0/298.26

WGS66

WGS66: semi-major axis: 6378145.0 [m]
flattening: 1.0/298.25

WGS60

WGS60: semi-major axis: 6378165.0 [m]
flattening: 1.0/298.3

PZ90

PZ90: Glonass Ellipsoid frame
semi-major axis: 6378136.0 [m] flattening: 1/298.257839303

BDC

BDC, also known as CGCS2000, is the reference frame used by the Beidou constellation.
Semi-major axis: 6378137.0 [m] flattening: 1/298.257222101

GRS80

GRS80 reference ellipsoid
semi-major axis: 6378137.0 [m]
flattening: 1.0/298.257222101

Bessel

Bessel reference ellipsoid
semi-major axis: 6377397.155 [m] flattening: 1.0/299.1528128

Airy

Airy reference ellipsoid
semi-major axis: 6377563.396 [m]
flattening: 1.0/299.3249646

International

International reference ellipsoid
semi-major axis: 6378388.0 [m]
flattening: 1.0/297.0

Implementations

Returns the tuple representing the Ellipsoid frame.

Outputs:
  • tuple.0 = semi-major axis [m]
  • tuple.1 = semi-minor axis [m]
  • tuple.2 = flattening [-]
  • tuple.3 = squared eccentricity [rad^2]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.