Class InterpolatedTransform2D
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.operation.transform.AbstractMathTransform
org.apache.sis.referencing.operation.transform.DatumShiftTransform
org.apache.sis.referencing.operation.transform.InterpolatedTransform
org.apache.sis.referencing.operation.transform.InterpolatedTransform2D
- All Implemented Interfaces:
Serializable,Parameterized,LenientComparable,org.opengis.referencing.operation.MathTransform,org.opengis.referencing.operation.MathTransform2D
final class InterpolatedTransform2D
extends InterpolatedTransform
implements org.opengis.referencing.operation.MathTransform2D
An interpolated transform for two-dimensional input and output coordinates.
- Since:
- 0.7
- Version:
- 0.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) final classThe inverse of the enclosingInterpolatedTransform2D. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerial number for compatibility with different versions.Fields inherited from class org.apache.sis.referencing.operation.transform.DatumShiftTransform
context, gridFields inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
MAXIMUM_BUFFER_SIZE, MAXIMUM_FAILURES -
Constructor Summary
ConstructorsConstructorDescriptionInterpolatedTransform2D(DatumShiftGrid<T, T> grid) Constructs a 2D transform. -
Method Summary
Modifier and TypeMethodDescription(package private) InterpolatedTransform.InverseInvoked at construction time for creating the two-dimensional inverse transform.createTransformedShape(Shape shape) Transforms the given shape.org.opengis.referencing.operation.Matrixderivative(Point2D point) Computes the derivative at the given position.org.opengis.referencing.operation.MathTransform2Dinverse()Returns the inverse transform of this transform.Transforms a single point.Methods inherited from class org.apache.sis.referencing.operation.transform.InterpolatedTransform
computeHashCode, createGeodeticTransformation, equals, getShiftGrid, getSourceDimensions, getTargetDimensions, transform, transformMethods inherited from class org.apache.sis.referencing.operation.transform.DatumShiftTransform
ensureGeocentricTranslation, getContextualParameters, getParameterValues, normalizedToGridX, normalizedToGridY, setContextParametersMethods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
beforeFormat, derivative, equals, formatTo, getDomain, getParameterDescriptors, hashCode, isIdentity, isInverseEquals, mismatchedDimension, transform, transform, transform, transform, tryConcatenateMethods 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 compatibility with different versions.- See Also:
-
-
Constructor Details
-
InterpolatedTransform2D
InterpolatedTransform2D(DatumShiftGrid<T, T> grid) throws NoninvertibleMatrixExceptionConstructs a 2D transform.- Throws:
NoninvertibleMatrixException
-
-
Method Details
-
derivative
public org.opengis.referencing.operation.Matrix derivative(Point2D point) throws org.opengis.referencing.operation.TransformException Computes the derivative at the given position.- Specified by:
derivativein interfaceorg.opengis.referencing.operation.MathTransform2D- Throws:
org.opengis.referencing.operation.TransformException
-
transform
public Point2D transform(Point2D ptSrc, Point2D ptDst) throws org.opengis.referencing.operation.TransformException Transforms a single point.- 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 given shape.- Specified by:
createTransformedShapein interfaceorg.opengis.referencing.operation.MathTransform2D- Throws:
org.opengis.referencing.operation.TransformException
-
inverse
public org.opengis.referencing.operation.MathTransform2D inverse()Returns the inverse transform of this transform.- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform- Specified by:
inversein interfaceorg.opengis.referencing.operation.MathTransform2D- Overrides:
inversein classInterpolatedTransform- Returns:
- a transform from the target ellipsoid to the source ellipsoid of this transform.
-
createInverse
InterpolatedTransform.Inverse createInverse()Invoked at construction time for creating the two-dimensional inverse transform.- Overrides:
createInversein classInterpolatedTransform
-