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 Details

    • Transformation

      public Transformation()
      Creates a new Transformation with default values.
  • Method Details

    • 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