| org.geotools.referencing.operation.transform.AbstractMathTransform org.geotools.referencing.operation.transform.PassThroughTransform
PassThroughTransform | public class PassThroughTransform extends AbstractMathTransform implements Serializable(Code) | | 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.
since: 2.0 version: $Id: PassThroughTransform.java 24925 2007-03-27 20:12:08Z jgarnett $ author: Martin Desruisseaux See Also: DimensionFilter |
Constructor Summary | |
protected | PassThroughTransform(int firstAffectedOrdinate, MathTransform subTransform, int numTrailingOrdinates) Create a pass through transform. |
Method Summary | |
public static MathTransform | create(int firstAffectedOrdinate, MathTransform subTransform, int numTrailingOrdinates) Creates a transform which passes through a subset of ordinates to another transform.
This allows transforms to operate on a subset of ordinates. | public Matrix | derivative(DirectPosition point) Gets the derivative of this transform at a point. | public boolean | equals(Object object) Compares the specified object with this math transform for equality. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | public int[] | getModifiedCoordinates() Ordered sequence of positive integers defining the positions in a coordinate
tuple of the coordinates affected by this pass-through transform. | public int | getSourceDimensions() Gets the dimension of input points. | public MathTransform | getSubTransform() Returns the sub transform. | public int | getTargetDimensions() Gets the dimension of output points. | public int | hashCode() Returns a hash value for this transform. | public MathTransform | inverse() Creates the inverse transform of this object. | public boolean | isIdentity() Tests whether this transform does not move any points. | public void | transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values. | public void | transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) Transforms a list of coordinate point ordinal values. |
firstAffectedOrdinate | final protected int firstAffectedOrdinate(Code) | | Index of the first affected ordinate.
|
numTrailingOrdinates | final protected int numTrailingOrdinates(Code) | | Number of unaffected ordinates after the affected ones.
Always 0 when used through the strict OpenGIS API.
|
PassThroughTransform | protected PassThroughTransform(int firstAffectedOrdinate, MathTransform subTransform, int numTrailingOrdinates)(Code) | | Create a pass through transform.
Parameters: firstAffectedOrdinate - Index of the first affected ordinate. Parameters: subTransform - The sub transform. Parameters: numTrailingOrdinates - Number of trailing ordinates to pass through.Affected ordinates will range from firstAffectedOrdinate inclusive to dimTarget-numTrailingOrdinates exclusive. |
create | public static MathTransform create(int firstAffectedOrdinate, MathTransform subTransform, int numTrailingOrdinates)(Code) | | Creates a 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
(latitidue,longitude,height) coordinates, then you
may wish to convert the height values from feet to meters without affecting the
latitude and longitude values.
Parameters: firstAffectedOrdinate - Index of the first affected ordinate. Parameters: subTransform - The sub transform. Parameters: numTrailingOrdinates - Number of trailing ordinates to pass through.Affected ordinates will range from firstAffectedOrdinate inclusive to dimTarget-numTrailingOrdinates exclusive. A pass through transform with the following dimensions:
Source: firstAffectedOrdinate + subTransform.getSourceDimensions() + numTrailingOrdinatesTarget: firstAffectedOrdinate + subTransform.getTargetDimensions() + numTrailingOrdinates |
derivative | public Matrix derivative(DirectPosition point) throws TransformException(Code) | | Gets the derivative of this transform at a point.
|
equals | public boolean equals(Object object)(Code) | | Compares the specified object with this math transform for equality.
|
getModifiedCoordinates | public int[] getModifiedCoordinates()(Code) | | Ordered sequence of positive integers defining the positions in a coordinate
tuple of the coordinates affected by this pass-through transform. The returned
index are for source coordinates.
The modified coordinates. |
getSourceDimensions | public int getSourceDimensions()(Code) | | Gets the dimension of input points.
|
getSubTransform | public MathTransform getSubTransform()(Code) | | Returns the sub transform.
since: 2.2 |
getTargetDimensions | public int getTargetDimensions()(Code) | | Gets the dimension of output points.
|
hashCode | public int hashCode()(Code) | | Returns a hash value for this transform.
This value need not remain consistent between
different implementations of the same class.
|
inverse | public MathTransform inverse() throws NoninvertibleTransformException(Code) | | Creates the inverse transform of this object.
|
isIdentity | public boolean isIdentity()(Code) | | Tests whether this transform does not move any points.
|
transform | public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code) | | Transforms a list of coordinate point ordinal values.
|
transform | public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException(Code) | | Transforms a list of coordinate point ordinal values.
|
Methods inherited from org.geotools.referencing.operation.transform.AbstractMathTransform | MathTransform concatenate(MathTransform other, boolean applyOtherFirst)(Code)(Java Doc) public Shape createTransformedShape(Shape shape) throws TransformException(Code)(Java Doc) final Shape createTransformedShape(Shape shape, AffineTransform preTransform, AffineTransform postTransform, int orientation) throws TransformException(Code)(Java Doc) public Matrix derivative(Point2D point) throws TransformException(Code)(Java Doc) public Matrix derivative(DirectPosition point) throws TransformException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) public boolean equals(Object object)(Code)(Java Doc) protected String formatWKT(Formatter formatter)(Code)(Java Doc) public ParameterDescriptorGroup getParameterDescriptors()(Code)(Java Doc) public ParameterValueGroup getParameterValues()(Code)(Java Doc) abstract public int getSourceDimensions()(Code)(Java Doc) abstract public int getTargetDimensions()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public MathTransform inverse() throws NoninvertibleTransformException(Code)(Java Doc) static Matrix invert(Matrix matrix) throws NoninvertibleTransformException(Code)(Java Doc) public boolean isIdentity()(Code)(Java Doc) protected static boolean needCopy(int srcOff, int dimSource, int dstOff, int dimTarget, int numPts)(Code)(Java Doc) protected static double rollLongitude(double x)(Code)(Java Doc) static GeneralMatrix toGMatrix(Matrix matrix)(Code)(Java Doc) static XMatrix toXMatrix(Matrix matrix)(Code)(Java Doc) public Point2D transform(Point2D ptSrc, Point2D ptDst) throws TransformException(Code)(Java Doc) public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException(Code)(Java Doc) public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException(Code)(Java Doc)
|
|
|