Package org.geolatte.geom.crs.trans
Class CoordinateOperations
- java.lang.Object
-
- org.geolatte.geom.crs.trans.CoordinateOperations
-
public class CoordinateOperations extends Object
Factory for common ConcatenatedOperations Created by Karel Maesen, Geovise BVBA on 02/04/2018.
-
-
Constructor Summary
Constructors Constructor Description CoordinateOperations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CoordinateOperationidentity(int dim)static CoordinateOperationpositionVectorTransformation(Datum source, Datum target)static CoordinateOperationpositionVectorTransformation2D(GeographicCoordinateReferenceSystem<G2D> source, GeographicCoordinateReferenceSystem<G2D> target)Returns the Position Vector transformation for the geographic 2D domain.static CoordinateOperationpositionVectorTransformation3D(GeographicCoordinateReferenceSystem<G3D> source, GeographicCoordinateReferenceSystem<G3D> target)Returns the Position Vector transformation for the geographic 3D domain.static <P extends Position,Q extends Position>
CoordinateOperationtransform(CoordinateReferenceSystem<P> source, CoordinateReferenceSystem<Q> target)static CoordinateOperationtransform(CrsId sourceId, CrsId targetId)Creates a transformation from source to target CRS's
-
-
-
Method Detail
-
positionVectorTransformation2D
public static CoordinateOperation positionVectorTransformation2D(GeographicCoordinateReferenceSystem<G2D> source, GeographicCoordinateReferenceSystem<G2D> target)
Returns the Position Vector transformation for the geographic 2D domain.It first transforms from the source CRS to WGS84, and then from WGS84 to the target CRS.
This transformation uses EPSG method 9606
- Returns:
- a Transformation conforming to EPSG method 9606
-
positionVectorTransformation3D
public static CoordinateOperation positionVectorTransformation3D(GeographicCoordinateReferenceSystem<G3D> source, GeographicCoordinateReferenceSystem<G3D> target)
Returns the Position Vector transformation for the geographic 3D domain.It first transforms from the source CRS to WGS84, and then from WGS84 to the target CRS.
This transformation uses EPSG method 1037
- Returns:
- a Transformation conforming to EPSG method 1037
-
positionVectorTransformation
public static CoordinateOperation positionVectorTransformation(Datum source, Datum target)
-
transform
public static CoordinateOperation transform(CrsId sourceId, CrsId targetId)
Creates a transformation from source to target CRS's- Parameters:
sourceId- the source CRStargetId- the target CRS- Returns:
- a CoordinateOperation whose forward operation transforms source to target
- Throws:
UnsupportedTransformException- when no transform could be determined
-
transform
public static <P extends Position,Q extends Position> CoordinateOperation transform(CoordinateReferenceSystem<P> source, CoordinateReferenceSystem<Q> target)
-
identity
public static CoordinateOperation identity(int dim)
-
-