Class Transformation
Object
AbstractCRS
Transformation
- All Implemented Interfaces:
CoordinateReferenceSystem
Represents a coordinate transformation in PROJJSON.
A transformation defines the operation to convert coordinates from one reference system to another. It includes a method and optional parameters. Transformations can be used standalone or as part of a BoundCRS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the accuracy of the transformation.Gets the method used by this transformation.Gets the parameters for this transformation.Gets the source CRS for the transformation.Gets the target CRS for the transformation.getType()Gets the type of coordinate operation.voidsetAccuracy(String accuracy) Sets the accuracy of the transformation.voidsetMethod(Conversion.Method method) Sets the method used by this transformation.voidsetParameters(List<Conversion.Parameter> parameters) Sets the parameters for this transformation.voidsetSourceCrs(CoordinateReferenceSystem sourceCrs) Sets the source CRS for the transformation.voidsetTargetCrs(CoordinateReferenceSystem targetCrs) Sets the target CRS for the transformation.Methods inherited from class AbstractCRS
getArea, getBbox, getId, getName, getRemarks, getScope, setArea, setBbox, setId, setName, setRemarks, setScope
-
Constructor Details
-
Transformation
public Transformation()Creates a new Transformation with default values.
-
-
Method Details
-
getType
Gets the type of coordinate operation.- Returns:
- Always "Transformation" for this implementation
-
getSourceCrs
Gets the source CRS for the transformation.- Returns:
- The source CRS
-
setSourceCrs
Sets the source CRS for the transformation.- Parameters:
sourceCrs- The source CRS
-
getTargetCrs
Gets the target CRS for the transformation.- Returns:
- The target CRS
-
setTargetCrs
Sets the target CRS for the transformation.- Parameters:
targetCrs- The target CRS
-
getMethod
Gets the method used by this transformation.- Returns:
- The transformation method
-
setMethod
Sets the method used by this transformation.- Parameters:
method- The transformation method
-
getParameters
Gets the parameters for this transformation.- Returns:
- The list of transformation parameters
-
setParameters
Sets the parameters for this transformation.- Parameters:
parameters- The list of transformation parameters
-
getAccuracy
Gets the accuracy of the transformation.- Returns:
- The accuracy as a string
-
setAccuracy
Sets the accuracy of the transformation.- Parameters:
accuracy- The accuracy as a string
-