A transformation between two coordinate reference systems. May not be instantiated with the constructor. Instead, use the factory methods in the TransformationFactory module to create instances of this class.

Hierarchy (view full)

Constructors

Accessors

  • get inverseTransformation(): Transformation
  • Returns a transformation that does the inverse transformation, so from target to source coordinates.

    Returns Transformation

    2023.0

Methods

  • Transforms a point from the input reference to the output reference.

    Parameters

    • aInputPoint: Point

      the point to transform specified in the input reference

    • OptionalaOutputPointSFCT: Point

      the output point; if not specified a new point will be created

    Returns Point

    a point containing the transformed coordinate. If aOutputPointSFCT was present in the parameters, aOutputPointSFCT will be returned

    OutOfBoundsError if the input point is not defined in the output reference

  • Transforms a bounding box from the input reference to the output reference.

    When transforming bounds between different projections, the resulting bounds are aligned with the axes of the output reference system. This can lead to changes in shape and size, as the transformed bounds may cover a larger area than the original. Users should be aware of potential distortions and verify the transformed bounds for their specific application needs.

    Parameters

    • inputBounds: Bounds

      the bounding box to transform, specified in the input reference.

    • OptionaloutputBoundsSFCT: Bounds

      the output bounds. If not specified, a new bounds will be created.

    Returns Bounds

    the transformed Bounds. If outputBoundsSFCT was provided, it will be transformed and returned.

    OutOfBoundsError if the input bounds is not defined in the output reference.