|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.referencing.wkt.Formattable
org.geotools.referencing.operation.transform.AbstractMathTransform
org.geotools.referencing.operation.transform.PassThroughTransform
Transform which passes through a subset of ordinates to another transform. This allows transforms to operate on a subset of ordinates. For example, if you have (latitude,longitude,height) coordinates, then you may wish to convert the height values from feet to meters without affecting the latitude and longitude values.
DimensionFilter,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class org.geotools.referencing.operation.transform.AbstractMathTransform |
AbstractMathTransform.Inverse |
| Field Summary | |
protected int |
firstAffectedOrdinate
Index of the first affected ordinate. |
protected int |
numTrailingOrdinates
Number of unaffected ordinates after the affected ones. |
protected org.opengis.referencing.operation.MathTransform |
subTransform
The sub transform. |
| Constructor Summary | |
protected |
PassThroughTransform(int firstAffectedOrdinate,
org.opengis.referencing.operation.MathTransform subTransform,
int numTrailingOrdinates)
Create a pass through transform. |
| Method Summary | |
static org.opengis.referencing.operation.MathTransform |
create(int firstAffectedOrdinate,
org.opengis.referencing.operation.MathTransform subTransform,
int numTrailingOrdinates)
Creates a transform which passes through a subset of ordinates to another transform. |
org.opengis.referencing.operation.Matrix |
derivative(org.opengis.spatialschema.geometry.DirectPosition point)
Gets the derivative of this transform at a point. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this math transform for equality. |
protected java.lang.String |
formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element. |
int[] |
getModifiedCoordinates()
Ordered sequence of positive integers defining the positions in a coordinate tuple of the coordinates affected by this pass-through transform. |
int |
getSourceDimensions()
Gets the dimension of input points. |
org.opengis.referencing.operation.MathTransform |
getSubTransform()
Returns the sub transform. |
int |
getTargetDimensions()
Gets the dimension of output points. |
int |
hashCode()
Returns a hash value for this transform. |
org.opengis.referencing.operation.MathTransform |
inverse()
Creates the inverse transform of this object. |
boolean |
isIdentity()
Tests whether this transform does not move any points. |
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. |
| Methods inherited from class org.geotools.referencing.operation.transform.AbstractMathTransform |
createTransformedShape, derivative, ensureNonNull, getDimSource, getDimTarget, getParameterDescriptors, getParameterValues, needCopy, rollLongitude, transform, transform |
| Methods inherited from class org.geotools.referencing.wkt.Formattable |
toString, toWKT, toWKT, 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 |
toWKT |
| Field Detail |
protected final int firstAffectedOrdinate
protected final int numTrailingOrdinates
protected final org.opengis.referencing.operation.MathTransform subTransform
getSubTransform()| Constructor Detail |
protected PassThroughTransform(int firstAffectedOrdinate,
org.opengis.referencing.operation.MathTransform subTransform,
int numTrailingOrdinates)
firstAffectedOrdinate - Index of the first affected ordinate.subTransform - The sub transform.numTrailingOrdinates - Number of trailing ordinates to pass through.
Affected ordinates will range from
inclusive to exclusive.| Method Detail |
public static org.opengis.referencing.operation.MathTransform create(int firstAffectedOrdinate,
org.opengis.referencing.operation.MathTransform subTransform,
int numTrailingOrdinates)
firstAffectedOrdinate - Index of the first affected ordinate.subTransform - The sub transform.numTrailingOrdinates - Number of trailing ordinates to pass through.
Affected ordinates will range from
inclusive to exclusive.
Source: firstAffectedOrdinate + subTransform.getSourceDimensions() + numTrailingOrdinates Target: firstAffectedOrdinate + subTransform.getTargetDimensions() + numTrailingOrdinates
public org.opengis.referencing.operation.MathTransform getSubTransform()
public int[] getModifiedCoordinates()
public int getSourceDimensions()
getSourceDimensions in interface org.opengis.referencing.operation.MathTransformgetSourceDimensions in class AbstractMathTransformpublic int getTargetDimensions()
getTargetDimensions in interface org.opengis.referencing.operation.MathTransformgetTargetDimensions in class AbstractMathTransformpublic boolean isIdentity()
isIdentity in interface org.opengis.referencing.operation.MathTransformisIdentity in class AbstractMathTransform
public void transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
throws org.opengis.referencing.operation.TransformException
transform in interface org.opengis.referencing.operation.MathTransformtransform in class AbstractMathTransformorg.opengis.referencing.operation.TransformException
public void transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
throws org.opengis.referencing.operation.TransformException
transform in interface org.opengis.referencing.operation.MathTransformorg.opengis.referencing.operation.TransformException
public org.opengis.referencing.operation.Matrix derivative(org.opengis.spatialschema.geometry.DirectPosition point)
throws org.opengis.referencing.operation.TransformException
derivative in interface org.opengis.referencing.operation.MathTransformderivative in class AbstractMathTransformpoint - The coordinate point where to evaluate the derivative.
org.opengis.referencing.operation.TransformException - if the derivative can't be evaluated at the
specified point.
public org.opengis.referencing.operation.MathTransform inverse()
throws org.opengis.referencing.operation.NoninvertibleTransformException
inverse in interface org.opengis.referencing.operation.MathTransforminverse in class AbstractMathTransformorg.opengis.referencing.operation.NoninvertibleTransformExceptionpublic int hashCode()
hashCode in class AbstractMathTransformpublic boolean equals(java.lang.Object object)
equals in class AbstractMathTransformprotected java.lang.String formatWKT(Formatter formatter)
formatWKT in class AbstractMathTransformformatter - The formatter to use.
numTrailingOrdinates parameter is not part of OpenGIS specification.
We should returns a more complex WKT when ,
using an affine transform to change the coordinates order.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||