Click or drag to resize

CoordinateReferenceSystem Class

Represents a single coordinate reference system. Two of them are used when transforming coordinates through CoordinateTransformation.
Inheritance Hierarchy
SystemObject
  Ptv.Components.ProjectionsCoordinateReferenceSystem

Namespace:  Ptv.Components.Projections
Assembly:  Ptv.Components.Projections (in Ptv.Components.Projections.dll) Version: 1.7.10.0
Syntax
public sealed class CoordinateReferenceSystem

The CoordinateReferenceSystem type exposes the following members.

Properties
  NameDescription
Public propertyId
Gets the identifier of the CoordinateReferenceSystem.
Public propertyWKT
Gets the parameters of a CoordinateReferenceSystem (Proj4 well known text).
Top
Methods
  NameDescription
Protected methodFinalize
Finalizes an instance of the CoordinateReferenceSystem class.
(Overrides ObjectFinalize.)
Public methodStatic memberCode exampleParse
Creates and initializes a coordinate reference system.
Public methodToString
Converts the CoordinateReferenceSystem to a string.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldStatic memberCustomParameter
Name of the parameter used for custom transformations.
Public fieldStatic memberRedirectionParameter
Name of the parameter used for CRS redirection / aliasing.
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleGetHaversineDistance
Extension method that calculates the haversine distance between to points using a specific coordinate reference system.
(Defined by Distance.)
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
Remarks
CoordinateReferenceSystem stores the parametrization (Proj4 well known text) and the identifier of a CRS. It is the base for any coordinate transformation as it also provides the necessary transformation handles and is bound to necessary custom pre- or post-transformation.
See Also