Class ProjectionTransformation

java.lang.Object
com.kheops.jmap.spatial.UnaryTransformation
com.kheops.jmap.spatial.ProjectionTransformation
All Implemented Interfaces:
Transformation, Serializable, Cloneable

public final class ProjectionTransformation extends UnaryTransformation
See Also:
  • Constructor Details

    • ProjectionTransformation

      public ProjectionTransformation(Projection projection)
      Creates a new instance of the transformation.
      Parameters:
      projection - the projection to be applied for the transformation.
    • ProjectionTransformation

      public ProjectionTransformation(Projection projection, boolean applyInverse)
      Creates a new instance of the transformation.
      Parameters:
      projection - the projection to be applied for the transformation.
      applyInverse - if true, the inverse of the projection is applied
  • Method Details

    • transform

      public Geometry transform(Point point)
      Applies the projection to the specified coordinate.
      Parameters:
      point - the coordinate to apply projection to.
      Returns:
      the projected point. The returned instance is always the same instance as point that was specified in parameter.
    • clone

      public Object clone()
      Specified by:
      clone in interface Transformation
      Specified by:
      clone in class UnaryTransformation
    • transform

      public Geometry transform(Ellipse ellipse)
      Description copied from class: UnaryTransformation
      Applies the transformation to the ellipse centroid. The transformation doesn't currently change the ellipse width or height.
      Specified by:
      transform in interface Transformation
      Overrides:
      transform in class UnaryTransformation
      Returns:
      the transformed ellipse.
    • transform

      public Geometry transform(Rectangle rectangle)
      Description copied from class: UnaryTransformation
      Applies the transformation to the rectangle coordinate. The transformation doesn't currently change the rectangle width or height.
      Specified by:
      transform in interface Transformation
      Overrides:
      transform in class UnaryTransformation
      Parameters:
      rectangle - the rectangle to transform.
      Returns:
      the transformed rectangle.