Class ConcatenatedTransform2D
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.operation.transform.AbstractMathTransform
org.apache.sis.referencing.operation.transform.ConcatenatedTransform
org.apache.sis.referencing.operation.transform.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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
AbstractMathTransform.Inverse -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerial number for inter-operability with different versions.Fields inherited from class org.apache.sis.referencing.operation.transform.ConcatenatedTransform
transform1, transform2Fields inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
MAXIMUM_BUFFER_SIZE, MAXIMUM_FAILURES -
Constructor Summary
ConstructorsConstructorDescriptionConcatenatedTransform2D(org.opengis.referencing.operation.MathTransform transform1, org.opengis.referencing.operation.MathTransform transform2) Constructs a concatenated transform. -
Method Summary
Modifier and TypeMethodDescriptioncreateTransformedShape(Shape shape) Transforms the specified shape.org.opengis.referencing.operation.Matrixderivative(Point2D point) Gets the derivative of this transform at a point.org.opengis.referencing.operation.MathTransform2Dinverse()Creates the inverse transform of this object.(package private) booleanisValid()Checks if transforms are compatibles with this implementation.Transforms the specifiedptSrcand stores the result inptDst.Methods inherited from class org.apache.sis.referencing.operation.transform.ConcatenatedTransform
computeHashCode, create, derivative, equals, formatTo, getDomain, getParameterDescriptors, getParameterValues, getSourceDimensions, getSteps, getTargetDimensions, isIdentity, setInverse, transform, transform, transform, transform, transform, transform, tryConcatenateMethods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
beforeFormat, equals, getContextualParameters, hashCode, isInverseEquals, mismatchedDimensionMethods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKTMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opengis.referencing.operation.MathTransform
derivative, getSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform, transform
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial 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:
isValidin classConcatenatedTransform
-
transform
public Point2D transform(Point2D ptSrc, Point2D ptDst) throws org.opengis.referencing.operation.TransformException Transforms the specifiedptSrcand stores the result inptDst. This method is a copy ofAbstractMathTransform2D.transform(Point2D, Point2D).- Specified by:
transformin interfaceorg.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:
createTransformedShapein interfaceorg.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 theConcatenatedTransform.derivative(DirectPosition)method because the transformation stepsConcatenatedTransform.transform1andConcatenatedTransform.transform2may not be instances ofMathTransform2D.- Specified by:
derivativein interfaceorg.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.NoninvertibleTransformExceptionCreates the inverse transform of this object.- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform2D- Overrides:
inversein classConcatenatedTransform- Throws:
org.opengis.referencing.operation.NoninvertibleTransformException
-