Class ConcatenatedTransform2D

All Implemented Interfaces:
Serializable, Parameterized, LenientComparable, org.opengis.referencing.operation.MathTransform, org.opengis.referencing.operation.MathTransform2D

final class ConcatenatedTransform2D extends ConcatenatedTransform implements org.opengis.referencing.operation.MathTransform2D
Concatenated transform in which the resulting transform is two-dimensional.
Since:
0.5
Version:
0.5
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
  • Constructor Details

    • ConcatenatedTransform2D

      ConcatenatedTransform2D(org.opengis.referencing.operation.MathTransform transform1, org.opengis.referencing.operation.MathTransform transform2)
      Constructs a concatenated transform.
  • Method Details

    • isValid

      boolean isValid()
      Checks if transforms are compatibles with this implementation.
      Overrides:
      isValid in class ConcatenatedTransform
    • transform

      public Point2D transform(Point2D ptSrc, Point2D ptDst) throws org.opengis.referencing.operation.TransformException
      Transforms the specified ptSrc and stores the result in ptDst. This method is a copy of AbstractMathTransform2D.transform(Point2D, Point2D).
      Specified by:
      transform in interface org.opengis.referencing.operation.MathTransform2D
      Throws:
      org.opengis.referencing.operation.TransformException
    • createTransformedShape

      public Shape createTransformedShape(Shape shape) throws org.opengis.referencing.operation.TransformException
      Transforms the specified shape.
      Specified by:
      createTransformedShape in interface org.opengis.referencing.operation.MathTransform2D
      Parameters:
      shape - shape to transform.
      Returns:
      transformed shape.
      Throws:
      org.opengis.referencing.operation.TransformException - if a transform failed.
    • derivative

      public org.opengis.referencing.operation.Matrix derivative(Point2D point) throws org.opengis.referencing.operation.TransformException
      Gets the derivative of this transform at a point. This method delegates to the ConcatenatedTransform.derivative(DirectPosition) method because the transformation steps ConcatenatedTransform.transform1 and ConcatenatedTransform.transform2 may not be instances of MathTransform2D.
      Specified by:
      derivative in interface org.opengis.referencing.operation.MathTransform2D
      Parameters:
      point - the position where to evaluate the derivative.
      Returns:
      the derivative at the specified point as a 2×2 matrix.
      Throws:
      org.opengis.referencing.operation.TransformException - if the derivative cannot be evaluated at the specified point.
    • inverse

      public org.opengis.referencing.operation.MathTransform2D inverse() throws org.opengis.referencing.operation.NoninvertibleTransformException
      Creates the inverse transform of this object.
      Specified by:
      inverse in interface org.opengis.referencing.operation.MathTransform
      Specified by:
      inverse in interface org.opengis.referencing.operation.MathTransform2D
      Overrides:
      inverse in class ConcatenatedTransform
      Throws:
      org.opengis.referencing.operation.NoninvertibleTransformException