Class MolodenskyTransform2D
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.MolodenskyFormula
org.apache.sis.referencing.operation.transform.MolodenskyTransform
org.apache.sis.referencing.operation.transform.MolodenskyTransform2D
- All Implemented Interfaces:
Serializable
,Parameterized
,LenientComparable
,org.opengis.referencing.operation.MathTransform
,org.opengis.referencing.operation.MathTransform2D
- Direct Known Subclasses:
AbridgedMolodenskyTransform2D
class MolodenskyTransform2D
extends MolodenskyTransform
implements org.opengis.referencing.operation.MathTransform2D
A Molodensky transforms for two-dimensional input and output coordinates.
- Since:
- 0.7
- Version:
- 0.7
-
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 long
Serial number for compatibility with different versions.Fields inherited from class org.apache.sis.referencing.operation.transform.MolodenskyFormula
ANGULAR_SCALE, eccentricitySquared, isAbridged, isSource3D, isTarget3D, semiMajor, tX, tY, tZ, Δa, Δfmod
Fields inherited from class org.apache.sis.referencing.operation.transform.DatumShiftTransform
context, grid
Fields inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
MAXIMUM_BUFFER_SIZE, MAXIMUM_FAILURES
-
Constructor Summary
ConstructorsConstructorDescriptionMolodenskyTransform2D
(MolodenskyTransform inverse, org.opengis.referencing.datum.Ellipsoid source, org.opengis.referencing.datum.Ellipsoid target) Constructs the inverse of a 2D transform.MolodenskyTransform2D
(org.opengis.referencing.datum.Ellipsoid source, org.opengis.referencing.datum.Ellipsoid target, double tX, double tY, double tZ, boolean isAbridged) Constructs a 2D transform. -
Method Summary
Modifier and TypeMethodDescriptioncreateTransformedShape
(Shape shape) Transforms the given shape.org.opengis.referencing.operation.Matrix
derivative
(Point2D point) Computes the derivative at the given position.org.opengis.referencing.operation.MathTransform2D
inverse()
Returns the inverse transform of this transform.Transforms a single point.Methods inherited from class org.apache.sis.referencing.operation.transform.MolodenskyTransform
completeParameters, createGeodeticTransformation, getParameterDescriptors, isIdentity, transform, transform
Methods inherited from class org.apache.sis.referencing.operation.transform.MolodenskyFormula
computeHashCode, equals, getParameterValues, getSourceDimensions, getTargetDimensions, transform
Methods inherited from class org.apache.sis.referencing.operation.transform.DatumShiftTransform
ensureGeocentricTranslation, getContextualParameters, normalizedToGridX, normalizedToGridY, setContextParameters
Methods inherited from class org.apache.sis.referencing.operation.transform.AbstractMathTransform
beforeFormat, derivative, equals, formatTo, getDomain, hashCode, isInverseEquals, mismatchedDimension, transform, transform, transform, transform, tryConcatenate
Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKT
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
-
MolodenskyTransform2D
MolodenskyTransform2D(org.opengis.referencing.datum.Ellipsoid source, org.opengis.referencing.datum.Ellipsoid target, double tX, double tY, double tZ, boolean isAbridged) Constructs a 2D transform. -
MolodenskyTransform2D
MolodenskyTransform2D(MolodenskyTransform inverse, org.opengis.referencing.datum.Ellipsoid source, org.opengis.referencing.datum.Ellipsoid target) Constructs the inverse of a 2D transform.- Parameters:
inverse
- the transform for which to create the inverse.source
- the source ellipsoid of the giveninverse
transform.target
- the target ellipsoid of the giveninverse
transform.
-
-
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:
derivative
in 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:
transform
in 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:
createTransformedShape
in 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:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform
- Specified by:
inverse
in interfaceorg.opengis.referencing.operation.MathTransform2D
- Overrides:
inverse
in classMolodenskyTransform
- Returns:
- a Molodensky transform from the target ellipsoid to the source ellipsoid of this transform.
-