Package org.locationtech.proj4j
Interface CoordinateTransform
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
BasicCoordinateTransform
public interface CoordinateTransform extends java.io.Serializable
An interface for the operation of transforming aProjCoordinate
from oneCoordinateReferenceSystem
into a different one.- See Also:
CoordinateTransformFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoordinateReferenceSystem
getSourceCRS()
CoordinateReferenceSystem
getTargetCRS()
ProjCoordinate
transform(ProjCoordinate src, ProjCoordinate tgt)
Tranforms a coordinate from the sourceCoordinateReferenceSystem
to the target one.
-
-
-
Method Detail
-
getSourceCRS
CoordinateReferenceSystem getSourceCRS()
-
getTargetCRS
CoordinateReferenceSystem getTargetCRS()
-
transform
ProjCoordinate transform(ProjCoordinate src, ProjCoordinate tgt) throws Proj4jException
Tranforms a coordinate from the sourceCoordinateReferenceSystem
to the target one.- Parameters:
src
- the input coordinate to transformtgt
- the transformed coordinate- Returns:
- the target coordinate which was passed in
- Throws:
Proj4jException
- if a computation error is encountered
-
-