public class MolodenskiTransform extends AbstractMathTransform implements Serializable
Unlike the Bursa-Wolf 3 parameter method (which acts on geocentric coordinates), this transformation can be performed directly on geographic coordinates.
References:
Modifier and Type | Class and Description |
---|---|
static class |
MolodenskiTransform.Provider
The provider for
MolodenskiTransform . |
static class |
MolodenskiTransform.ProviderAbridged
The provider for abridged
MolodenskiTransform . |
AbstractMathTransform.Inverse
SINGLE_LINE
Constructor and Description |
---|
MolodenskiTransform(boolean abridged,
double a,
double b,
boolean source3D,
double ta,
double tb,
boolean target3D,
double dx,
double dy,
double dz)
Constructs a Molodenski transform from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compares the specified object with this math transform for equality.
|
ParameterDescriptorGroup |
getParameterDescriptors()
Returns the parameter descriptors for this math transform.
|
ParameterValueGroup |
getParameterValues()
Returns the parameters for this math transform.
|
int |
getSourceDimensions()
Gets the dimension of input points.
|
int |
getTargetDimensions()
Gets the dimension of output points.
|
int |
hashCode()
Returns a hash value for this transform.
|
MathTransform |
inverse()
Creates the inverse transform of this object.
|
boolean |
isIdentity()
Returns
true if this transform is the identity one. |
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values.
|
void |
transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values.
|
createTransformedShape, derivative, derivative, ensureNonNull, formatWKT, getName, needCopy, normalizeAngle, rollLongitude, transform, transform, transform, transform
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
toWKT
public MolodenskiTransform(boolean abridged, double a, double b, boolean source3D, double ta, double tb, boolean target3D, double dx, double dy, double dz)
abridged
- true
for the abridged formula, or false
for the complete one.a
- The source semi-major axis length in meters.b
- The source semi-minor axis length in meters.source3D
- true
if the source has a height.ta
- The target semi-major axis length in meters.tb
- The target semi-minor axis length in meters.target3D
- true
if the target has a height.dx
- The x translation in meters.dy
- The y translation in meters.dz
- The z translation in meters.public ParameterDescriptorGroup getParameterDescriptors()
getParameterDescriptors
in class AbstractMathTransform
null
.OperationMethod.getParameters()
public ParameterValueGroup getParameterValues()
getParameterValues
in class AbstractMathTransform
Operation.getParameterValues()
public int getSourceDimensions()
getSourceDimensions
in interface MathTransform
getSourceDimensions
in class AbstractMathTransform
public final int getTargetDimensions()
getTargetDimensions
in interface MathTransform
getTargetDimensions
in class AbstractMathTransform
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
(x0,y0,z0, x1,y1,z1 ...).
transform
in interface MathTransform
srcPts
- the array containing the source point coordinates.srcOff
- the offset to the first point to be transformed in the source array.dstPts
- the array into which the transformed point coordinates are returned. May be the
same than srcPts
.dstOff
- the offset to the location of the first transformed point that is stored in the
destination array.numPts
- the number of point objects to be transformed.public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
(x0,y0,z0, x1,y1,z1 ...).
transform
in interface MathTransform
transform
in class AbstractMathTransform
srcPts
- the array containing the source point coordinates.srcOff
- the offset to the first point to be transformed in the source array.dstPts
- the array into which the transformed point coordinates are returned. May be the
same than srcPts
.dstOff
- the offset to the location of the first transformed point that is stored in the
destination array.numPts
- the number of point objects to be transformed.public boolean isIdentity()
true
if this transform is the identity one. This transform is considered
identity (minus rounding errors) if:
isIdentity
in interface MathTransform
isIdentity
in class AbstractMathTransform
true
if this MathTransform
is an identity transform; false
otherwise.public MathTransform inverse()
inverse
in interface MathTransform
inverse
in class AbstractMathTransform
public final int hashCode()
hashCode
in class AbstractMathTransform
public final boolean equals(Object object)
equals
in class AbstractMathTransform
object
- The object to compare with this transform.true
if the given object is a transform of the same class and if, given
identical source position, the transformed position would be the equals.Copyright © 1996–2019 Geotools. All rights reserved.