Ellipsoid Class

An ellipsoid of revolution that models the shape of the Earth, such as the one of WGS 84 or GRS 80.

public sealed class Ellipsoid

Constructors

NameDescription
Ellipsoid(string, double, double)Initializes a new instance of the Ellipsoid class.

Ellipsoid(string, double, double)

Ellipsoid.cs

Initializes a new instance of the Ellipsoid class.

public Ellipsoid(string name, double semiMajorAxis, double inverseFlattening)

Parameters

name string
The name of the ellipsoid.
semiMajorAxis double
The radius at the equator, in meters.
inverseFlattening double
The inverse of the flattening, a / (a - b), or 0 for a sphere.

Exceptions

ArgumentOutOfRangeException
semiMajorAxis is not a positive number, or inverseFlattening is not 0 or a number greater than 1.

Properties

NameDescription
Airy1830Gets the ellipsoid Airy 1830, used by the OSGB36 datum of Great Britain.
Bessel1841Gets the ellipsoid Bessel 1841, used by the DHDN datum of Germany.
Clarke1866Gets the ellipsoid Clarke 1866, used by NAD27.
Clarke1880IgnGets the ellipsoid Clarke 1880 (IGN), used by the NTF datum of France.
EccentricityGets the first eccentricity.
EccentricitySquaredGets the square of the first eccentricity.
FlatteningGets the flattening, (a - b) / a.
Grs80Gets the ellipsoid GRS 1980, used by ETRS89, RGF93 and NAD83.
International1924Gets the International 1924 (Hayford) ellipsoid, used by ED50.
InverseFlatteningGets the inverse of the flattening, or 0 for a sphere.
NameGets the name of the ellipsoid.
SemiMajorAxisGets the radius at the equator, in meters.
SemiMinorAxisGets the radius at the poles, in meters.
Wgs84Gets the ellipsoid of WGS 84, used by GPS devices, GeoJSON and web maps.

Airy1830

Ellipsoid.cs

Gets the ellipsoid Airy 1830, used by the OSGB36 datum of Great Britain.

public static Ellipsoid Airy1830 { get; }

Property value

Ellipsoid

Bessel1841

Ellipsoid.cs

Gets the ellipsoid Bessel 1841, used by the DHDN datum of Germany.

public static Ellipsoid Bessel1841 { get; }

Property value

Ellipsoid

Clarke1866

Ellipsoid.cs

Gets the ellipsoid Clarke 1866, used by NAD27.

public static Ellipsoid Clarke1866 { get; }

Property value

Ellipsoid

Clarke1880Ign

Ellipsoid.cs

Gets the ellipsoid Clarke 1880 (IGN), used by the NTF datum of France.

public static Ellipsoid Clarke1880Ign { get; }

Property value

Ellipsoid

Eccentricity

Ellipsoid.cs

Gets the first eccentricity.

public double Eccentricity { get; }

Property value

double

EccentricitySquared

Ellipsoid.cs

Gets the square of the first eccentricity.

public double EccentricitySquared { get; }

Property value

double

Flattening

Ellipsoid.cs

Gets the flattening, (a - b) / a.

public double Flattening { get; }

Property value

double

Gets the ellipsoid GRS 1980, used by ETRS89, RGF93 and NAD83.

public static Ellipsoid Grs80 { get; }

Property value

Ellipsoid

International1924

Ellipsoid.cs

Gets the International 1924 (Hayford) ellipsoid, used by ED50.

public static Ellipsoid International1924 { get; }

Property value

Ellipsoid

InverseFlattening

Ellipsoid.cs

Gets the inverse of the flattening, or 0 for a sphere.

public double InverseFlattening { get; }

Property value

double

Gets the name of the ellipsoid.

public string Name { get; }

Property value

string

SemiMajorAxis

Ellipsoid.cs

Gets the radius at the equator, in meters.

public double SemiMajorAxis { get; }

Property value

double

SemiMinorAxis

Ellipsoid.cs

Gets the radius at the poles, in meters.

public double SemiMinorAxis { get; }

Property value

double

Gets the ellipsoid of WGS 84, used by GPS devices, GeoJSON and web maps.

public static Ellipsoid Wgs84 { get; }

Property value

Ellipsoid

Methods

NameDescription
ToString()Returns a string that represents the current object.

ToString()

Ellipsoid.cs

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.