Click or drag to resize

CoordinateTransformationGet Method (String, String)

Gets a coordinate transformation for the specified coordinate reference system identifiers.

Namespace:  Ptv.Components.Projections
Assembly:  Ptv.Components.Projections (in Ptv.Components.Projections.dll) Version: 1.7.10.0
Syntax
public static ICoordinateTransformation Get(
	string sourceId,
	string targetId
)

Parameters

sourceId
Type: SystemString
Identifier of the source coordinate reference system.
targetId
Type: SystemString
Identifier of the target coordinate reference system.

Return Value

Type: ICoordinateTransformation
The coordinate transformation, provided through ICoordinateTransformation.
Exceptions
ExceptionCondition
TransformationNotFoundExceptionA TransformationNotFoundException will be thrown if the coordinate transformation cannot be constructed.
Remarks

CoordinateTransformation.Get first tries to get a direct transformation from Direct.CoordinateTransformation before it tries to get a transformation from Proj4.CoordinateTransformation.

Changing the configuration in Direct.CoordinateTransformation.Enabled and / or Proj4.CoordinateTransformation.Enabled may influence this behavior.

See Also