GeodeticEllipsoid Class
This class defines the mathematical model of the Earth shape in the form of an ellipsoid. There are various ways to define an ellipsoid but we have retained the definition based on the polar and equatorial radiuses. The other ellipsoid properties, such as flattening and inverse flattening, can be obtained using the simple equations that are defined at: https://en.wikipedia.org/wiki/Flattening and https://en.wikipedia.org/wiki/Earth_ellipsoid. The present class only implements the definition of the ellipsoid. No processing is performed here. If ellipsoid based computation are required refer to Ellipsoid in core/geometry package. The class only serves to describe a geodetic ellipsoid and can be partially or fully defined. For a lot of purposes simply setting the id property is sufficient to describe the ellipsoid in most cases as the mathematical properties (equatorial and polar radiuses) will be often extracted from the dictionary of commonly known ellipsoids by the reprojection engine used.
Implements
Methods
Name | Description | |
---|---|---|
constructor(data?: GeodeticEllipsoidProps): GeodeticEllipsoid | ||
equals(other: GeodeticEllipsoid): boolean | Compares two Geodetic Ellipsoid. | |
toJSON(): GeodeticEllipsoidProps | Creates a JSON from the Geodetic Ellipsoid definition | |
fromJSON(data: GeodeticEllipsoidProps): GeodeticEllipsoid Static | Creates a Geodetic Ellipsoid from JSON representation. |
Properties
Name | Type | Description | |
---|---|---|---|
deprecated Readonly | boolean | If true then indicates the definition is deprecated. | |
description Readonly | string | undefined | Description of the ellipsoid | |
epsg Readonly | number | undefined | The EPSG code of the ellipsoid. | |
equatorialRadius Readonly | number | undefined | The equatorial radius of the ellipsoid in meters. | |
id Readonly | string | undefined | Ellipsoid key name | |
polarRadius Readonly | number | undefined | The polar radius of the ellipsoid in meters. | |
source Readonly | string | undefined | The textual description of the source of the ellipsoid definition. |
Defined in
Last Updated: 13 November, 2024