Class Transformation

java.lang.Object
com.luciad.geodesy.Transformation
All Implemented Interfaces:
AutoCloseable

public final class Transformation extends Object implements AutoCloseable
Provides transformations between a source and a target coordinate reference.
  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getSourceReference Link icon

      @NotNull public CoordinateReference getSourceReference()
      Returns the source coordinate reference.
      Returns:
      the source coordinate reference.
    • getTargetReference Link icon

      @NotNull public CoordinateReference getTargetReference()
      Returns the target coordinate reference.
      Returns:
      the target coordinate reference.
    • transform Link icon

      @Nullable public Coordinate transform(@NotNull Coordinate point)
      Transforms a point from the source reference to the target reference.
      Parameters:
      point - Point.
      Returns:
      transformed point in the target reference, null if the point does not exist in the target reference.
    • transform Link icon

      @Nullable public Point transform(@NotNull Point point)
      Transforms a point from the source reference to the target reference.
      Parameters:
      point - Point.
      Returns:
      transformed point in the target reference, null if the point does not exist in the target reference, null if the point is not defined in the source reference
    • transform Link icon

      @Nullable public Bounds transform(@NotNull Bounds bounds)
      Transforms the bounds from the source reference to the target reference.
      Parameters:
      bounds - Bounds.
      Returns:
      transformed bounds in the target reference, null if the bounds does not exist in the target reference, null if the bounds is not defined in the source reference.
    • isIdentity Link icon

      public boolean isIdentity()
      Returns whether this transformation is an identity transformation, i.e.

      if the output to the transform methods is exactly the same as the input.

      Returns:
      whether this transformation is an identity transformation.
    • create Link icon

      @NotNull public static Transformation create(@NotNull CoordinateReference source, @NotNull CoordinateReference target) throws IllegalArgumentException
      Creates a transformation for the given references.
      Parameters:
      source - Source coordinate reference.
      target - Target coordinate reference.
      Returns:
      transformation for the given references.
      Throws:
      IllegalArgumentException - when no transformation can be set up.