CoordinateConversion Class

The projection of a ProjectedCoordinateSystem: converts the longitudes and latitudes of an ellipsoid to eastings and northings in meters, as the map projection methods of the EPSG dataset define them.

public abstract class CoordinateConversion

Remarks

Derive from this class to support another projection method. The angles are in radians, the longitudes measured from the prime meridian of the geographic coordinate system; the eastings and the northings are in meters, the false easting and the false northing included.

Constructors

NameDescription
CoordinateConversion()Initializes a new instance of the CoordinateConversion class.

CoordinateConversion()

CoordinateConversion.cs

Initializes a new instance of the CoordinateConversion class.

protected CoordinateConversion()

Properties

NameDescription
CentralMeridianGets the longitude of the origin (the central meridian), in degrees from the prime meridian. The default is 0.
FalseEastingGets the easting of the origin, in meters. The default is 0.
FalseNorthingGets the northing of the origin, in meters. The default is 0.
LatitudeOfOriginGets the latitude of the origin of the northings (the latitude of the false origin of a Lambert conformal conic projection), in degrees. The default is 0.

Gets the longitude of the origin (the central meridian), in degrees from the prime meridian. The default is 0.

public double CentralMeridian { get; init; }

Property value

double

Gets the easting of the origin, in meters. The default is 0.

public double FalseEasting { get; init; }

Property value

double

Gets the northing of the origin, in meters. The default is 0.

public double FalseNorthing { get; init; }

Property value

double

LatitudeOfOrigin

CoordinateConversion.cs

Gets the latitude of the origin of the northings (the latitude of the false origin of a Lambert conformal conic projection), in degrees. The default is 0.

public double LatitudeOfOrigin { get; init; }

Property value

double

Methods

NameDescription
Project(double, double, Ellipsoid)Projects a longitude and a latitude.
Unproject(double, double, Ellipsoid)Converts an easting and a northing back to a longitude and a latitude: the inverse of CoordinateConversion.Project.

Project(double, double, Ellipsoid)

Projects a longitude and a latitude.

public abstract (double Easting, double Northing) Project(double lambda, double phi, Ellipsoid ellipsoid)

Parameters

lambda double
The longitude from the prime meridian, in radians.
phi double
The latitude, in radians.
ellipsoid Ellipsoid
The ellipsoid of the longitudes and the latitudes.

Returns

(double Easting, double Northing) The easting and the northing, in meters.

Unproject(double, double, Ellipsoid)

Converts an easting and a northing back to a longitude and a latitude: the inverse of CoordinateConversion.Project.

public abstract (double Lambda, double Phi) Unproject(double easting, double northing, Ellipsoid ellipsoid)

Parameters

easting double
The easting, in meters.
northing double
The northing, in meters.
ellipsoid Ellipsoid
The ellipsoid of the longitudes and the latitudes.

Returns

(double Lambda, double Phi) The longitude from the prime meridian and the latitude, in radians.