public class GeocentricTransform extends AbstractMathTransform implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
GeocentricTransform.Provider
The provider for
GeocentricTransform. |
static class |
GeocentricTransform.ProviderInverse
The provider for inverse of
GeocentricTransform. |
SINGLE_LINE| Constructor and Description |
|---|
GeocentricTransform(double semiMajor,
double semiMinor,
Unit<Length> units,
boolean hasHeight)
Constructs a transform from the specified parameters.
|
GeocentricTransform(Ellipsoid ellipsoid,
boolean hasHeight)
Constructs a transform from the specified ellipsoid.
|
| 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 parameter values for this math transform.
|
int |
getSourceDimensions()
Gets the dimension of input points, which is 2 or 3.
|
int |
getTargetDimensions()
Gets the dimension of output points, which is 3.
|
int |
hashCode()
Returns a hash value for this transform.
|
MathTransform |
inverse()
Returns the inverse of this transform.
|
void |
inverseTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Converts geocentric coordinates (x, y, z) to geodetic coordinates (longitude, latitude,
height), according to the current ellipsoid parameters.
|
void |
inverseTransform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Converts geocentric coordinates (x, y, z) to geodetic coordinates (longitude, latitude,
height), according to the current ellipsoid parameters.
|
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Converts geodetic coordinates (longitude, latitude, height) to geocentric coordinates (x, y,
z) according to the current ellipsoid parameters.
|
void |
transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Converts geodetic coordinates (longitude, latitude, height) to geocentric coordinates (x, y,
z) according to the current ellipsoid parameters.
|
createTransformedShape, derivative, derivative, ensureNonNull, formatWKT, getName, isIdentity, needCopy, normalizeAngle, rollLongitude, transform, transform, transform, transformcleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTtoWKTpublic GeocentricTransform(Ellipsoid ellipsoid, boolean hasHeight)
ellipsoid - The ellipsoid.hasHeight - true if geographic coordinates include an ellipsoidal height (i.e.
are 3-D), or false if they are only 2-D.public GeocentricTransform(double semiMajor,
double semiMinor,
Unit<Length> units,
boolean hasHeight)
semiMajor - The semi-major axis length.semiMinor - The semi-minor axis length.units - The axis units.hasHeight - true if geographic coordinates include an ellipsoidal height (i.e.
are 3-D), or false if they are only 2-D.public ParameterDescriptorGroup getParameterDescriptors()
getParameterDescriptors in class AbstractMathTransformnull.OperationMethod.getParameters()public ParameterValueGroup getParameterValues()
getParameterValues in class AbstractMathTransformOperation.getParameterValues()public int getSourceDimensions()
getSourceDimensions in interface MathTransformgetSourceDimensions in class AbstractMathTransformpublic final int getTargetDimensions()
getTargetDimensions in interface MathTransformgetTargetDimensions in class AbstractMathTransformpublic void transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
transform in interface MathTransformsrcPts - 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)
transform in interface MathTransformtransform in class AbstractMathTransformsrcPts - 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 inverseTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
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 inverseTransform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
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 MathTransform inverse()
inverse in interface MathTransforminverse in class AbstractMathTransformpublic int hashCode()
hashCode in class AbstractMathTransformpublic boolean equals(Object object)
equals in class AbstractMathTransformobject - 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.