org.geotoolkit.referencing.operation.provider
Class NTv2

Object
  extended by FormattableObject
      extended by AbstractIdentifiedObject
          extended by DefaultOperationMethod
              extended by MathTransformProvider
                  extended by NTv2
All Implemented Interfaces:
Serializable, Formattable, LenientComparable, IdentifiedObject, OperationMethod

public class NTv2
extends MathTransformProvider

The provider for "National Transformation" version 2 (ESPG:9615). The math transform implementations instantiated by this provider may be any of the following classes:


Grid data
This transform requires data that are not bundled by default with Geotk. Run the geotk-setup module for downloading and installing the grid data.

Since:
3.12
Version:
3.12
Author:
Simon Reynard (Geomatys)
See Also:
Serialized Form
Module:
referencing/geotk-referencing (download)    View source code for this class

Field Summary
static ParameterDescriptor<String> DIFFERENCE_FILE
          The operation parameter descriptor for the Latitude and longitude difference file parameter value.
static ParameterDescriptorGroup PARAMETERS
          The parameters group.
 
Fields inherited from class DefaultOperationMethod
sourceDimension, targetDimension
 
Fields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
 
Fields inherited from class FormattableObject
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE
 
Fields inherited from interface OperationMethod
FORMULA_KEY
 
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
NTv2()
          Constructs a provider.
 
Method Summary
protected  MathTransform createMathTransform(ParameterValueGroup values)
          Creates a math transform from the specified group of parameter values.
 Class<Transformation> getOperationType()
          Returns the operation type.
 
Methods inherited from class MathTransformProvider
ensureValidValues, formatWKT
 
Methods inherited from class DefaultOperationMethod
checkDimensions, computeHashCode, equals, getFormula, getParameters, getSourceDimensions, getTargetDimensions
 
Methods inherited from class AbstractIdentifiedObject
equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, hashCode, nameMatches, nameMatches, nameMatches
 
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 IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Field Detail

DIFFERENCE_FILE

public static final ParameterDescriptor<String> DIFFERENCE_FILE
The operation parameter descriptor for the Latitude and longitude difference file parameter value. The file extension is typically ".gsb". There is no default value.


PARAMETERS

public static final ParameterDescriptorGroup PARAMETERS
The parameters group.

Constructor Detail

NTv2

public NTv2()
Constructs a provider.

Method Detail

getOperationType

public Class<Transformation> getOperationType()
Returns the operation type.

Overrides:
getOperationType in class MathTransformProvider
Returns:
The GeoAPI interface implemented by this operation.

createMathTransform

protected MathTransform createMathTransform(ParameterValueGroup values)
                                     throws FactoryException
Creates a math transform from the specified group of parameter values.

Specified by:
createMathTransform in class MathTransformProvider
Parameters:
values - The group of parameter values.
Returns:
The created math transform.
Throws:
FactoryException - If the grid files can not be loaded.


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