org.geotoolkit.referencing.operation.transform
Class GridTransform2D

Object
  extended by FormattableObject
      extended by AbstractMathTransform
          extended by GridTransform
              extended by GridTransform2D
All Implemented Interfaces:
Serializable, Formattable, Parameterized, LenientComparable, MathTransform, MathTransform2D
Direct Known Subclasses:
NadconTransform, NTv2Transform

@Immutable
public class GridTransform2D
extends GridTransform
implements MathTransform2D

A specialization of GridTransform in the two-dimensional case. The default implementation is invertible for the OFFSET, NADCON and NTv2 grid types (assuming that the offsets are small), but not for the LOCALIZATION type. For an invertible localization grid, see the LocalizationGrid builder.

Since:
3.00
Version:
3.00
Author:
Rueben Schulz (UBC), Martin Desruisseaux (IRD, Geomatys)
See Also:
Serialized Form
Module:
referencing/geotk-referencing (download)    View source code for this class

Field Summary
 
Fields inherited from class GridTransform
grid, height, width
 
Fields inherited from class FormattableObject
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE
 
Constructor Summary
protected GridTransform2D(GridType type, DataBuffer grid, Dimension size, Rectangle2D area)
          Constructs a grid using the specified data.
 
Method Summary
 Matrix derivative(Point2D point)
          Gets an estimation of the derivative of this transform at a point.
 MathTransform2D inverse()
          Returns the inverse of this transform.
 
Methods inherited from class GridTransform
computeHashCode, create, create, create, derivative, equals, getSourceDimensions, getTargetDimensions, isIdentity, transform, transform, transform, transform, transform
 
Methods inherited from class AbstractMathTransform
createTransformedShape, ensureNonNull, equals, formatWKT, getName, getParameterDescriptors, getParameterValues, hashCode, 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 MathTransform2D
createTransformedShape, transform
 
Methods inherited from interface MathTransform
derivative, getSourceDimensions, getTargetDimensions, isIdentity, toWKT, transform, transform, transform, transform, transform
 

Constructor Detail

GridTransform2D

protected GridTransform2D(GridType type,
                          DataBuffer grid,
                          Dimension size,
                          Rectangle2D area)
Constructs a grid using the specified data.

Parameters:
type - Whatever the grid values are directly the target coordinates or offsets to apply on source coordinates.
grid - The grid of values. It must complies with the conditions documented in the GridTransform.grid field.
size - Number of columns (width) and rows (height) in the grid.
area - Grid envelope in "real world" coordinates, or null if none. The minimal (x,y) coordinate will maps the (0,0) grid coordinate, and the maximal (x,y) coordinate will maps the (width, height) grid coordinate.
Method Detail

derivative

public Matrix derivative(Point2D point)
Gets an estimation of the derivative of this transform at a point.

Specified by:
derivative in interface MathTransform2D
Overrides:
derivative in class AbstractMathTransform
Parameters:
point - The coordinate point where to evaluate the derivative.
Returns:
The derivative at the specified point as a 2×2 matrix.
See Also:
MathTransform2D.derivative(Point2D)

inverse

public MathTransform2D inverse()
                        throws NoninvertibleTransformException
Returns the inverse of this transform.

Specified by:
inverse in interface MathTransform
Specified by:
inverse in interface MathTransform2D
Overrides:
inverse in class AbstractMathTransform
Throws:
NoninvertibleTransformException - If this transform is not invertible.


Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.