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
CoordinateReferenceSystem ProjectedCoordinateSystem

Constructors

NameDescription
ProjectedCoordinateSystem(string, GeographicCoordinateSystem, CoordinateConversion)Initializes a new instance of the ProjectedCoordinateSystem class.

ProjectedCoordinateSystem(string, GeographicCoordinateSystem, CoordinateConversion)

ProjectedCoordinateSystem.cs

Initializes a new instance of the ProjectedCoordinateSystem class.

public ProjectedCoordinateSystem(string name, GeographicCoordinateSystem geographicCoordinateSystem, CoordinateConversion conversion)

Parameters

name string
The name of the coordinate reference system.
geographicCoordinateSystem GeographicCoordinateSystem
The geographic coordinate system that the projection projects.
conversion CoordinateConversion
The projection.

Properties

NameDescription
ConversionGets the projection.
GeographicCoordinateSystemGets the geographic coordinate system that the projection projects.
IsGeographicGets a value that indicates whether the coordinates are a longitude and a latitude, rather than an easting and a northing.
LinearUnitGets the linear unit of the coordinates, in meters, such as 0.3048 for the international foot. The default is 1, a meter.

Gets the projection.

public CoordinateConversion Conversion { get; }

Property value

CoordinateConversion

GeographicCoordinateSystem

ProjectedCoordinateSystem.cs

Gets the geographic coordinate system that the projection projects.

public GeographicCoordinateSystem GeographicCoordinateSystem { get; }

Gets a value that indicates whether the coordinates are a longitude and a latitude, rather than an easting and a northing.

public override bool IsGeographic { get; }

Property value

bool

Gets the linear unit of the coordinates, in meters, such as 0.3048 for the international foot. The default is 1, a meter.

public double LinearUnit { get; init; }

Property value

double

Methods

NameDescription
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.cs

Converts a longitude and a latitude of WGS 84 to a position of this coordinate reference system.

public override GeoPosition FromWgs84(GeoPosition position)

Parameters

position GeoPosition
The longitude and the latitude on WGS 84, in degrees.

Returns

GeoPosition The position, in this coordinate reference system.

ToWgs84(GeoPosition)

ProjectedCoordinateSystem.cs

Converts a position of this coordinate reference system to a longitude and a latitude of WGS 84.

public override GeoPosition ToWgs84(GeoPosition position)

Parameters

position GeoPosition
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.