Click or drag to resize

Ptv.Components.Projections Namespace

The Ptv.Components.Projections namespace contains the classes that are essential for projecting or transforming coordinates in GIS-like applications.

CoordinateTransformation is the main class for the transformations, offering a set of methods for transforming coordinates specified either as System.Windows.Point, Location or simply using doubles.

CoordinateTransformation uses CoordinateReferenceSystem to describe the source and the target of a transformation. The Registry provides well known coordinate reference systems and provides an access using CRS identifiers (e.g. EPSG:4326). See classes CoordinateReferenceSystem.Mapserver and CoordinateReferenceSystem.XServer, which provide an access for PTV legacy systems.

At its base, the coordinate transformation uses the PROJ.4 Cartographic Projections Library. The Registry included is initialized on startup with specific PTV coordinate reference systems as well as other well known systems taken from an internal EPSG database, defining the coordinate reference systems in the Proj4 well known text format. A good and short summary on EPSG and its codes is provided by Wikipedia (german article). A good source for any coordinate reference system that might be missing is www.spatialreference.org.

Classes
  ClassDescription
Public classCoordinateReferenceSystem
Represents a single coordinate reference system. Two of them are used when transforming coordinates through CoordinateTransformation.
Public classCoordinateReferenceSystemMapserver
Defines well known Mapserver coordinate reference systems.
Public classCoordinateReferenceSystemXServer
Defines well known XServer coordinate reference systems.
Public classCoordinateTransformation
Provides the core implementation of the coordinate transformation routines and is the root for accessing ICoordinateTransformation implementations, each identified by a pair of coordinate reference systems (namely source and target).
Public classDistance
Provides distance calculation routines.
Public classRegistry
Manages coordinate reference systems in a reusable way.
Public classTransformationException
Exception that is thrown in the unlikely event that a coordinate transformation fails.
Public classTransformationNotFoundException
Exception that is thrown if a certain transformation, given a source and target coordinate reference system, is not available or not possible.
Structures
  StructureDescription
Public structureLocation
Represents an x- and y-coordinate pair with an optional z-coordinate.
Interfaces
  InterfaceDescription
Public interfaceICoordinateTransformation
Defines the core coordinate transformation routines.