org.geotools.referencing.piecewise
Class MathTransform1DAdapter

java.lang.Object
  extended by org.geotools.referencing.piecewise.MathTransform1DAdapter
All Implemented Interfaces:
org.opengis.referencing.operation.MathTransform, org.opengis.referencing.operation.MathTransform1D

public class MathTransform1DAdapter
extends java.lang.Object
implements org.opengis.referencing.operation.MathTransform1D

Adapter class for MathTransform1D.

Simple adapter for MathTransform1D it provides some convenience methods for implementors.

Note that it throw an UnsupportedOperationException for the operations that must be implemented by implementors, namely:

  1. transform methods
  2. inverse methods
  3. derivative methods

Author:
Simone Giannecchini, GeoSolutions.

Constructor Summary
MathTransform1DAdapter()
           
 
Method Summary
 org.opengis.referencing.operation.Matrix derivative(org.opengis.geometry.DirectPosition point)
           
 double derivative(double value)
           
 int getSourceDimensions()
           
 int getTargetDimensions()
           
 org.opengis.referencing.operation.MathTransform1D inverse()
           
 boolean isIdentity()
           
 java.lang.String toWKT()
           
 org.opengis.geometry.DirectPosition transform(org.opengis.geometry.DirectPosition ptSrc, org.opengis.geometry.DirectPosition ptDst)
           
 double transform(double value)
           
 void transform(double[] arg0, int arg1, double[] arg2, int arg3, int arg4)
           
 void transform(double[] arg0, int arg1, float[] arg2, int arg3, int arg4)
           
 void transform(float[] arg0, int arg1, double[] arg2, int arg3, int arg4)
           
 void transform(float[] arg0, int arg1, float[] arg2, int arg3, int arg4)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathTransform1DAdapter

public MathTransform1DAdapter()
Method Detail

derivative

public double derivative(double value)
                  throws org.opengis.referencing.operation.TransformException
Specified by:
derivative in interface org.opengis.referencing.operation.MathTransform1D
Throws:
org.opengis.referencing.operation.TransformException

transform

public double transform(double value)
                 throws org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.referencing.operation.MathTransform1D
Throws:
org.opengis.referencing.operation.TransformException

derivative

public org.opengis.referencing.operation.Matrix derivative(org.opengis.geometry.DirectPosition point)
                                                    throws org.opengis.geometry.MismatchedDimensionException,
                                                           org.opengis.referencing.operation.TransformException
Specified by:
derivative in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.geometry.MismatchedDimensionException
org.opengis.referencing.operation.TransformException

getSourceDimensions

public int getSourceDimensions()
Specified by:
getSourceDimensions in interface org.opengis.referencing.operation.MathTransform

getTargetDimensions

public int getTargetDimensions()
Specified by:
getTargetDimensions in interface org.opengis.referencing.operation.MathTransform

inverse

public org.opengis.referencing.operation.MathTransform1D inverse()
                                                          throws org.opengis.referencing.operation.NoninvertibleTransformException
Specified by:
inverse in interface org.opengis.referencing.operation.MathTransform
Specified by:
inverse in interface org.opengis.referencing.operation.MathTransform1D
Throws:
org.opengis.referencing.operation.NoninvertibleTransformException

isIdentity

public boolean isIdentity()
Specified by:
isIdentity in interface org.opengis.referencing.operation.MathTransform

toWKT

public java.lang.String toWKT()
Specified by:
toWKT in interface org.opengis.referencing.operation.MathTransform

transform

public org.opengis.geometry.DirectPosition transform(org.opengis.geometry.DirectPosition ptSrc,
                                                     org.opengis.geometry.DirectPosition ptDst)
                                              throws org.opengis.geometry.MismatchedDimensionException,
                                                     org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.geometry.MismatchedDimensionException
org.opengis.referencing.operation.TransformException

transform

public void transform(double[] arg0,
                      int arg1,
                      double[] arg2,
                      int arg3,
                      int arg4)
               throws org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.TransformException

transform

public void transform(float[] arg0,
                      int arg1,
                      float[] arg2,
                      int arg3,
                      int arg4)
               throws org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.TransformException

transform

public void transform(float[] arg0,
                      int arg1,
                      double[] arg2,
                      int arg3,
                      int arg4)
               throws org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.TransformException

transform

public void transform(double[] arg0,
                      int arg1,
                      float[] arg2,
                      int arg3,
                      int arg4)
               throws org.opengis.referencing.operation.TransformException
Specified by:
transform in interface org.opengis.referencing.operation.MathTransform
Throws:
org.opengis.referencing.operation.TransformException


Copyright © 1996-2010 Geotools. All Rights Reserved.