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.
Class | Description | |
---|---|---|
CoordinateReferenceSystem |
Represents a single coordinate reference system. Two of them are used when transforming
coordinates through CoordinateTransformation.
| |
CoordinateReferenceSystemMapserver |
Defines well known Mapserver coordinate reference systems.
| |
CoordinateReferenceSystemXServer | Defines well known XServer coordinate reference systems. | |
CoordinateTransformation |
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).
| |
Distance |
Provides distance calculation routines.
| |
Registry |
Manages coordinate reference systems in a reusable way.
| |
TransformationException |
Exception that is thrown in the unlikely event that a coordinate transformation fails.
| |
TransformationNotFoundException |
Exception that is thrown if a certain transformation, given a source and
target coordinate reference system, is not available or not possible.
|
Structure | Description | |
---|---|---|
Location |
Represents an x- and y-coordinate pair with an optional z-coordinate.
|
Interface | Description | |
---|---|---|
ICoordinateTransformation |
Defines the core coordinate transformation routines.
|