ProjectedCoordinateSystem Class
A projected coordinate reference system: eastings and northings on a plane, such as UTM, Lambert 93 or Web Mercator, made of a ProjectedCoordinateSystem.GeographicCoordinateSystem and the CoordinateConversion that projects it.
public sealed class ProjectedCoordinateSystem : CoordinateReferenceSystem- Inheritance
CoordinateReferenceSystemProjectedCoordinateSystem
Constructors
| Name | Description |
|---|---|
| ProjectedCoordinateSystem(string, GeographicCoordinateSystem, CoordinateConversion) | Initializes a new instance of the ProjectedCoordinateSystem class. |
ProjectedCoordinateSystem(string, GeographicCoordinateSystem, CoordinateConversion)
ProjectedCoordinateSystem.csInitializes a new instance of the ProjectedCoordinateSystem class.
public ProjectedCoordinateSystem(string name, GeographicCoordinateSystem geographicCoordinateSystem, CoordinateConversion conversion)Parameters
namestring- The name of the coordinate reference system.
geographicCoordinateSystemGeographicCoordinateSystem- The geographic coordinate system that the projection projects.
conversionCoordinateConversion- The projection.
Properties
| Name | Description |
|---|---|
| Conversion | Gets the projection. |
| GeographicCoordinateSystem | Gets the geographic coordinate system that the projection projects. |
| IsGeographic | Gets a value that indicates whether the coordinates are a longitude and a latitude, rather than an easting and a northing. |
| LinearUnit | Gets the linear unit of the coordinates, in meters, such as 0.3048 for the international foot. The default is 1, a meter. |
Conversion
ProjectedCoordinateSystem.csGeographicCoordinateSystem
ProjectedCoordinateSystem.csGets the geographic coordinate system that the projection projects.
public GeographicCoordinateSystem GeographicCoordinateSystem { get; }Property value
IsGeographic
ProjectedCoordinateSystem.csLinearUnit
ProjectedCoordinateSystem.csMethods
| 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)
ProjectedCoordinateSystem.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)
ProjectedCoordinateSystem.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.