|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractMathTransform
GeocentricTransform
@Immutable public class GeocentricTransform
Transforms three dimensional geographic points to geocentric coordinate points. Input points must be longitudes, latitudes and heights above the ellipsoid.
See any of the following providers for a list of programmatic parameters:
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Constructor Summary | |
|---|---|
protected |
GeocentricTransform(double semiMajor,
double semiMinor,
Unit<Length> units,
boolean hasHeight)
Creates a transform from the specified parameters. |
protected |
GeocentricTransform(GeocentricTransform original,
boolean hasHeight)
Creates a new transform with the same ellipsoidal parameters than the given transform, but a different number of source dimensions. |
| Method Summary | |
|---|---|
protected int |
computeHashCode()
Computes a hash value for this transform. |
static MathTransform |
create(double semiMajor,
double semiMinor,
Unit<Length> units,
boolean hasHeight)
Constructs a transform from the specified parameters. |
static MathTransform |
create(Ellipsoid ellipsoid,
boolean hasHeight)
Constructs a transform from the specified ellipsoid. |
Matrix |
derivative(DirectPosition point)
Gets the derivative of this transform at a point. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares the specified object with this math transform for equality. |
GeocentricTransform |
forDimensions(boolean source3D,
boolean target3D)
Returns a transform having the same ellipsoidal parameters than this transform, but a different number of source dimensions. |
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. |
EllipsoidalTransform |
inverse()
Returns the inverse of this transform. |
protected void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff)
Converts geodetic coordinates (longitude, latitude, height) to geocentric coordinates (x, y, z) 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(double[] 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. |
void |
transform(float[] 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. |
| Methods inherited from class AbstractMathTransform |
|---|
createTransformedShape, derivative, ensureNonNull, equals, formatWKT, getName, hashCode, isIdentity, rollLongitude, transform, transform |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface MathTransform |
|---|
isIdentity, toWKT, transform |
| Constructor Detail |
|---|
protected GeocentricTransform(double semiMajor,
double semiMinor,
Unit<Length> units,
boolean hasHeight)
WARNING: Current implementation expects longitude and latitude ordinates in decimal degrees, but it may be changed to radians in a future version. The static factory method will preserve the decimal degrees contract.
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.create(double, double, Unit, boolean)
protected GeocentricTransform(GeocentricTransform original,
boolean hasHeight)
original - The transform to copy.hasHeight - true if geographic coordinates include an ellipsoidal
height (i.e. are 3-D), or false if they are only 2-D.| Method Detail |
|---|
public static MathTransform create(Ellipsoid ellipsoid,
boolean hasHeight)
hasHeight argument).
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 static MathTransform create(double semiMajor,
double semiMinor,
Unit<Length> units,
boolean hasHeight)
hasHeight argument).
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 interface ParameterizedgetParameterDescriptors in class AbstractMathTransformnull.OperationMethod.getParameters()public ParameterValueGroup getParameterValues()
getParameterValues in interface ParameterizedgetParameterValues in class AbstractMathTransformSingleOperation.getParameterValues()
public GeocentricTransform forDimensions(boolean source3D,
boolean target3D)
throws IllegalArgumentException
Note: In the inverse transform case, the above-cited conditions for thesource3Dandtarget3Darguments are interchanged.
forDimensions in interface EllipsoidalTransformsource3D - true if the source coordinates have a height.target3D - Must always be true.
this).
IllegalArgumentException - If target3D is false.public final int getSourceDimensions()
getSourceDimensions in interface MathTransformgetSourceDimensions in class AbstractMathTransformpublic final int getTargetDimensions()
getTargetDimensions in interface MathTransformgetTargetDimensions in class AbstractMathTransform
protected void transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff)
transform in class AbstractMathTransformsrcPts - The array containing the source point coordinates.srcOff - The offset to the point to be transformed in the source array.dstPts - the array into which the transformed point coordinate are returned.
May be the same than srcPts.dstOff - The offset to the location of the transformed point that is
stored in the destination array.
public void transform(double[] srcPts,
int srcOff,
double[] 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 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 transform(float[] srcPts,
int srcOff,
double[] 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.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(double[] 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.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 Matrix derivative(DirectPosition point)
derivative in interface MathTransformderivative in class AbstractMathTransformpoint - The coordinate point where to evaluate the derivative.
public EllipsoidalTransform inverse()
inverse in interface MathTransforminverse in class AbstractMathTransformprotected int computeHashCode()
AbstractMathTransform.hashCode()
when first needed.
computeHashCode in class AbstractMathTransform
public boolean equals(Object object,
ComparisonMode mode)
equals in interface LenientComparableequals in class AbstractMathTransformobject - The object to compare with this transform.mode - The strictness level of the comparison. Default to STRICT.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||