GeographicCoordinateSystem Class
A geographic coordinate reference system: longitudes and latitudes on the ellipsoid of a datum, such as WGS 84, ETRS89 or NTF.
public sealed class GeographicCoordinateSystem : CoordinateReferenceSystem- Inheritance
CoordinateReferenceSystemGeographicCoordinateSystem
Constructors
| Name | Description |
|---|---|
| GeographicCoordinateSystem(string, Ellipsoid) | Initializes a new instance of the GeographicCoordinateSystem class. |
GeographicCoordinateSystem(string, Ellipsoid)
GeographicCoordinateSystem.csInitializes a new instance of the GeographicCoordinateSystem class.
Properties
| Name | Description |
|---|---|
| AngularUnit | Gets the angular unit of the coordinates, in radians, such as π / 200 for grads. The default is a degree, π / 180. |
| Ellipsoid | Gets the ellipsoid of the datum. |
| IsGeographic | Gets a value that indicates whether the coordinates are a longitude and a latitude, rather than an easting and a northing. |
| PrimeMeridian | Gets the longitude of the prime meridian east of Greenwich, in degrees, such as 2.33722917 for the meridian of Paris. The default is 0. |
| ToWgs84Transformation | Gets the transformation from the datum to WGS 84, or null when the longitudes and the latitudes of the datum are taken as those of WGS 84, as for ETRS89, RGF93 or NAD83, which differ by less than two meters. The default is null. |
AngularUnit
GeographicCoordinateSystem.csEllipsoid
GeographicCoordinateSystem.csIsGeographic
GeographicCoordinateSystem.csPrimeMeridian
GeographicCoordinateSystem.csToWgs84Transformation
GeographicCoordinateSystem.csGets the transformation from the datum to WGS 84, or null when the longitudes and the latitudes of the datum are taken as those of WGS 84, as for ETRS89, RGF93 or NAD83, which differ by less than two meters. The default is null.
public HelmertTransformation? ToWgs84Transformation { get; init; }Property value
Methods
| Name | Description |
|---|---|
| FromWgs84(GeoPosition) | Converts a longitude and a latitude of WGS 84 to a position of this coordinate reference system. |
| ToWgs84(GeoPosition) | Converts a position of this coordinate reference system to a longitude and a latitude of WGS 84. |
FromWgs84(GeoPosition)
GeographicCoordinateSystem.csConverts a longitude and a latitude of WGS 84 to a position of this coordinate reference system.
public override GeoPosition FromWgs84(GeoPosition position)Parameters
positionGeoPosition- The longitude and the latitude on WGS 84, in degrees.
Returns
GeoPosition The position, in this coordinate reference system.
ToWgs84(GeoPosition)
GeographicCoordinateSystem.csConverts a position of this coordinate reference system to a longitude and a latitude of WGS 84.
public override GeoPosition ToWgs84(GeoPosition position)Parameters
positionGeoPosition- The position, in this coordinate reference system.
Returns
GeoPosition The longitude and the latitude on WGS 84, in degrees, the longitude from -180 to 180.