Class UnaryTransformation

java.lang.Object
com.kheops.jmap.spatial.UnaryTransformation
All Implemented Interfaces:
Transformation, Serializable, Cloneable
Direct Known Subclasses:
OffsetTransformation, PrecisionTransformation, ProjectionTransformation, RotationTransformation

public abstract class UnaryTransformation extends Object implements Transformation
See Also:
  • Constructor Details

    • UnaryTransformation

      public UnaryTransformation()
  • Method Details

    • clone

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

      public Geometry transform(LineString lineString)
      Calls the transform method to all coordinates included in the specified line string.
      Specified by:
      transform in interface Transformation
      Parameters:
      lineString - the line string to transform.
      Returns:
      the specified line string with transformed coordinates.
    • transform

      public Geometry transform(Polygon polygon)
      Calls the transform method to all linear rings included in the specified polygon.
      Specified by:
      transform in interface Transformation
      Parameters:
      polygon - the polygon to transform.
      Returns:
      the specified polygon with transformed coordinates.
    • transform

      public Geometry transform(Ellipse ellipse)
      Applies the transformation to the ellipse centroid. The transformation doesn't currently change the ellipse width or height.
      Specified by:
      transform in interface Transformation
      Parameters:
      rectangle - the ellipse to transform.
      Returns:
      the transformed ellipse.
    • transform

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

      public Geometry transform(GeometryCollection collection)
      Calls the transform method to all geometries included in the specified geometry collection.
      Specified by:
      transform in interface Transformation
      Parameters:
      collection - the geometry to transform.
      Returns:
      the specified collection with transformed geometries.