C# Class ProjNet.CoordinateSystems.Transformations.CoordinateTransformationFactory

Creates coordinate transformations.
Inheritance: ICoordinateTransformationFactory
Show file Open project: fivepmtechnology/ProjNET Class Usage Examples

Public Methods

Method Description
CreateFromCoordinateSystems ( ICoordinateSystem sourceCS, ICoordinateSystem targetCS ) : ICoordinateTransformation

Creates a transformation between two coordinate systems.

This method will examine the coordinate systems in order to construct a transformation between them. This method may fail if no path between the coordinate systems is found, using the normal failing behavior of the DCP (e.g. throwing an exception).

Private Methods

Method Description
CreateCoordinateOperation ( IGeocentricCoordinateSystem geo ) : IMathTransform
CreateCoordinateOperation ( IProjection projection, IEllipsoid ellipsoid, ILinearUnit unit ) : IMathTransform
CreateGeoc2Geoc ( IGeocentricCoordinateSystem source, IGeocentricCoordinateSystem target ) : ICoordinateTransformation

Geocentric to Geocentric transformation

CreateGeog2Geog ( IGeographicCoordinateSystem source, IGeographicCoordinateSystem target ) : ICoordinateTransformation

Geographic to geographic transformation

Adds a datum shift if nessesary

Geoc2Geog ( IGeocentricCoordinateSystem source, IGeographicCoordinateSystem target ) : ICoordinateTransformation
Geog2Geoc ( IGeographicCoordinateSystem source, IGeocentricCoordinateSystem target ) : ICoordinateTransformation
Geog2Proj ( IGeographicCoordinateSystem source, IProjectedCoordinateSystem target ) : ICoordinateTransformation
Proj2Geog ( IProjectedCoordinateSystem source, IGeographicCoordinateSystem target ) : ICoordinateTransformation
Proj2Proj ( IProjectedCoordinateSystem source, IProjectedCoordinateSystem target ) : ICoordinateTransformation
SimplifyTrans ( ConcatenatedTransform mtrans, List &MTs ) : void

Method Details

CreateFromCoordinateSystems() public method

Creates a transformation between two coordinate systems.
This method will examine the coordinate systems in order to construct a transformation between them. This method may fail if no path between the coordinate systems is found, using the normal failing behavior of the DCP (e.g. throwing an exception).
public CreateFromCoordinateSystems ( ICoordinateSystem sourceCS, ICoordinateSystem targetCS ) : ICoordinateTransformation
sourceCS ICoordinateSystem Source coordinate system
targetCS ICoordinateSystem Target coordinate system
return ICoordinateTransformation