Class Transformation
- Object
-
- AbstractCRS
-
- Transformation
-
- All Implemented Interfaces:
CoordinateReferenceSystem
public class Transformation extends AbstractCRS
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 Constructor Description Transformation()
Creates a new Transformation with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccuracy()
Gets the accuracy of the transformation.Conversion.Method
getMethod()
Gets the method used by this transformation.List<Conversion.Parameter>
getParameters()
Gets the parameters for this transformation.CoordinateReferenceSystem
getSourceCrs()
Gets the source CRS for the transformation.CoordinateReferenceSystem
getTargetCrs()
Gets the target CRS for the transformation.String
getType()
Gets the type of coordinate operation.void
setAccuracy(String accuracy)
Sets the accuracy of the transformation.void
setMethod(Conversion.Method method)
Sets the method used by this transformation.void
setParameters(List<Conversion.Parameter> parameters)
Sets the parameters for this transformation.void
setSourceCrs(CoordinateReferenceSystem sourceCrs)
Sets the source CRS for the transformation.void
setTargetCrs(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
-
-
-
-
Method Detail
-
getType
public String getType()
Gets the type of coordinate operation.- Returns:
- Always "Transformation" for this implementation
-
getSourceCrs
public CoordinateReferenceSystem getSourceCrs()
Gets the source CRS for the transformation.- Returns:
- The source CRS
-
setSourceCrs
public void setSourceCrs(CoordinateReferenceSystem sourceCrs)
Sets the source CRS for the transformation.- Parameters:
sourceCrs
- The source CRS
-
getTargetCrs
public CoordinateReferenceSystem getTargetCrs()
Gets the target CRS for the transformation.- Returns:
- The target CRS
-
setTargetCrs
public void setTargetCrs(CoordinateReferenceSystem targetCrs)
Sets the target CRS for the transformation.- Parameters:
targetCrs
- The target CRS
-
getMethod
public Conversion.Method getMethod()
Gets the method used by this transformation.- Returns:
- The transformation method
-
setMethod
public void setMethod(Conversion.Method method)
Sets the method used by this transformation.- Parameters:
method
- The transformation method
-
getParameters
public List<Conversion.Parameter> getParameters()
Gets the parameters for this transformation.- Returns:
- The list of transformation parameters
-
setParameters
public void setParameters(List<Conversion.Parameter> parameters)
Sets the parameters for this transformation.- Parameters:
parameters
- The list of transformation parameters
-
getAccuracy
public String getAccuracy()
Gets the accuracy of the transformation.- Returns:
- The accuracy as a string
-
setAccuracy
public void setAccuracy(String accuracy)
Sets the accuracy of the transformation.- Parameters:
accuracy
- The accuracy as a string
-
-