org.geotools.referencing.operation.transform
Class MathTransformProxy

java.lang.Object
  extended byorg.geotools.referencing.operation.transform.MathTransformProxy
All Implemented Interfaces:
org.opengis.referencing.operation.MathTransform, java.io.Serializable
Direct Known Subclasses:
MathTransformProvider.Delegate

public class MathTransformProxy
extends java.lang.Object
implements org.opengis.referencing.operation.MathTransform, java.io.Serializable

A math transform which delegates part of its work to an other math transform. This is used as a starting point for subclass wanting to modifies only some aspect of an existing math transform, or to attach additional informations to it. The default implementation delegates all method calls to the underlying transform. Subclasses typically override some of those methods.

This class is serializable if the underlying transform is serializable too.

Since:
2.2
Version:
$Id: MathTransformProxy.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 org.opengis.referencing.operation.MathTransform transform
          The math transform on which to delegate the work.
 
Constructor Summary
protected MathTransformProxy(org.opengis.referencing.operation.MathTransform transform)
          Creates a new proxy which delegates its work to the specified math transform.
 
Method Summary
 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 inverse math transform for equality.
 int getDimSource()
          Deprecated. Renamed getSourceDimensions().
 int getDimTarget()
          Deprecated. Renamed getTargetDimensions().
 int getSourceDimensions()
          Gets the dimension of input points.
 int getTargetDimensions()
          Gets the dimension of output points.
 int hashCode()
          Returns a hash code value for this math transform.
 org.opengis.referencing.operation.MathTransform inverse()
          Returns the inverse of this math transform.
 boolean isIdentity()
          Tests whether this transform does not move any points.
 java.lang.String toString()
          Returns a string representation for this transform.
 java.lang.String toWKT()
          Returns a Well Known Text (WKT) for this transform.
 org.opengis.spatialschema.geometry.DirectPosition transform(org.opengis.spatialschema.geometry.DirectPosition ptSrc, org.opengis.spatialschema.geometry.DirectPosition ptDst)
          Transforms the specified and stores the result in .
 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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

transform

public final org.opengis.referencing.operation.MathTransform transform
The math transform on which to delegate the work.

Constructor Detail

MathTransformProxy

protected MathTransformProxy(org.opengis.referencing.operation.MathTransform transform)
Creates a new proxy which delegates its work to the specified math transform.

Method Detail

getSourceDimensions

public int getSourceDimensions()
Gets the dimension of input points.

Specified by:
getSourceDimensions in interface org.opengis.referencing.operation.MathTransform

getDimSource

public final int getDimSource()
Deprecated. Renamed getSourceDimensions().

Gets the dimension of input points.


getTargetDimensions

public int getTargetDimensions()
Gets the dimension of output points.

Specified by:
getTargetDimensions in interface org.opengis.referencing.operation.MathTransform

getDimTarget

public final int getDimTarget()
Deprecated. Renamed getTargetDimensions().

Gets the dimension of output points.


transform

public org.opengis.spatialschema.geometry.DirectPosition transform(org.opengis.spatialschema.geometry.DirectPosition ptSrc,
                                                                   org.opengis.spatialschema.geometry.DirectPosition ptDst)
                                                            throws org.opengis.spatialschema.geometry.MismatchedDimensionException,
                                                                   org.opengis.referencing.operation.TransformException
Transforms the specified and stores the result in .

Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.spatialschema.geometry.MismatchedDimensionException
org.opengis.referencing.operation.TransformException

transform

public void transform(double[] srcPts,
                      int srcOff,
                      double[] dstPts,
                      int dstOff,
                      int numPts)
               throws org.opengis.referencing.operation.TransformException
Transforms a list of coordinate point ordinal values.

Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.TransformException

transform

public void transform(float[] srcPts,
                      int srcOff,
                      float[] dstPts,
                      int dstOff,
                      int numPts)
               throws org.opengis.referencing.operation.TransformException
Transforms a list of coordinate point ordinal values.

Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.TransformException

derivative

public org.opengis.referencing.operation.Matrix derivative(org.opengis.spatialschema.geometry.DirectPosition point)
                                                    throws org.opengis.referencing.operation.TransformException
Gets the derivative of this transform at a point.

Specified by:
derivative in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.TransformException

inverse

public org.opengis.referencing.operation.MathTransform inverse()
                                                        throws org.opengis.referencing.operation.NoninvertibleTransformException
Returns the inverse of this math transform.

Specified by:
inverse in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.NoninvertibleTransformException

isIdentity

public boolean isIdentity()
Tests whether this transform does not move any points.

Specified by:
isIdentity in interface org.opengis.referencing.operation.MathTransform

toWKT

public java.lang.String toWKT()
                       throws java.lang.UnsupportedOperationException
Returns a Well Known Text (WKT) for this transform.

Specified by:
toWKT in interface org.opengis.referencing.operation.MathTransform
Throws:
java.lang.UnsupportedOperationException

toString

public java.lang.String toString()
Returns a string representation for this transform.


equals

public boolean equals(java.lang.Object object)
Compares the specified object with this inverse math transform for equality.


hashCode

public int hashCode()
Returns a hash code value for this math transform.



Copyright © GeoTools. All Rights Reserved.