org.geotoolkit.referencing.operation.transform
Enum GridType

Object
  extended by Enum<GridType>
      extended by GridType
All Implemented Interfaces:
Serializable, Comparable<GridType>

public enum GridType
extends Enum<GridType>

Whatever the grid values backing a GridTransform are directly the target coordinates or offsets to apply on the source coordinates. If grid values are offsets, they may be added directly to the source coordinates (OFFSET) or they may be pre-multiplied by some factor before to be added to source coordinates (NADCON, NTv2).

Note: The special offset cases (NADCON, NTv2) are not strictly necessary since it would be possible to pre-multiply the scale factor straight in the grid. However the approach taken by GridTransform is to keep major formats unchanged. This approach allows for example a RenderedImage to share the same DataBuffer than the one used by GridTransform, and compare the visual aspect with publications.

Since:
3.00
Version:
3.12
Author:
Martin Desruisseaux (Geomatys)
Module:
referencing/geotk-referencing (download)    View source code for this class

Enum Constant Summary
LOCALIZATION
          The grid values give directly the target coordinates.
NADCON
          The grid values are offsets to apply on source coordinates in seconds of angle.
NTv2
          Same as NADCON, except that longitudes in the west hemisphere are positives.
OFFSET
          The grid values are offsets to add to source coordinates.
 
Method Summary
static GridType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GridType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOCALIZATION

public static final GridType LOCALIZATION
The grid values give directly the target coordinates. The source coordinates are discarded after the interpolation.


OFFSET

public static final GridType OFFSET
The grid values are offsets to add to source coordinates. The source and target coordinates can be in any CRS. In the typical case where to source or the target CRS is WGS84, then the offsets are in decimal degrees with longitude offset positive toward east and latitude offset positive toward north.


NADCON

public static final GridType NADCON
The grid values are offsets to apply on source coordinates in seconds of angle. Longitude offset is positive toward west and latitude offset is positive toward north. Longitudes in the west hemisphere are negatives.


NTv2

public static final GridType NTv2
Same as NADCON, except that longitudes in the west hemisphere are positives.

Since:
3.12
Method Detail

values

public static GridType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GridType c : GridType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GridType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


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