org.geotoolkit.referencing.operation.provider
Class NADCON

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

@Immutable
public class NADCON
extends MathTransformProvider

The provider for "North American Datum Conversion" (EPSG:9613). The math transform implementations instantiated by this provider may be any of the following classes:

The following table summarizes the parameters recognized by this provider. For a more detailed parameter list, see the PARAMETERS constant.

Operation name: NADCON

Parameter nameDefault value
Latitude difference file"conus.las"
Longitude difference file"conus.los"


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:
2.1
Version:
3.20
Author:
Rueben Schulz (UBC), Martin Desruisseaux (Geomatys)
See Also:
Geotk coordinate operations matrix, Serialized Form
Module:
referencing/geotk-referencing (download)    View source code for this class

Field Summary
static ParameterDescriptor<String> LAT_DIFF_FILE
          Deprecated. Invoke PARAMETERS.descriptor(String) instead.
static ParameterDescriptor<String> LONG_DIFF_FILE
          Deprecated. Invoke PARAMETERS.descriptor(String) instead.
static ParameterDescriptorGroup PARAMETERS
          The group of all parameters expected by this coordinate operation.
 
Fields inherited from class DefaultOperationMethod
sourceDimension, targetDimension
 
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
NADCON()
          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.
static boolean isAvailable()
          Returns true if the NADCON data seem to be present.
 
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, getAlias, getIdentifier, getIdentifiers, getName, getName, getRemarks, hashCode, isDeprecated, nameMatches
 
Methods inherited from class FormattableObject
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, 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

LAT_DIFF_FILE

@Deprecated
public static final ParameterDescriptor<String> LAT_DIFF_FILE
Deprecated. Invoke PARAMETERS.descriptor(String) instead.
The operation parameter descriptor for the Latitude difference file parameter value. The default value is "conus.las".


LONG_DIFF_FILE

@Deprecated
public static final ParameterDescriptor<String> LONG_DIFF_FILE
Deprecated. Invoke PARAMETERS.descriptor(String) instead.
The operation parameter descriptor for the Longitude difference file parameter value. The default value is "conus.los".


PARAMETERS

public static final ParameterDescriptorGroup PARAMETERS
The group of all parameters expected by this coordinate operation. The following table lists the operation names and the parameters recognized by Geotk:

Name:EPSG:NADCON
Alias:Geotk:NADCON transform
Identifier:EPSG:9613
Name:EPSG:Latitude difference file
Type:String
Obligation:mandatory
Default value:"conus.las"
Name:EPSG:Longitude difference file
Type:String
Obligation:mandatory
Default value:"conus.los"

Constructor Detail

NADCON

public NADCON()
Constructs a provider.

Method Detail

isAvailable

public static boolean isAvailable()
Returns true if the NADCON data seem to be present. This method checks for the existence of "conus.las" and "conus.los" (continental United States) files, using the same search criterion than the one applied by the transform constructor.

Some optional data can be automatically downloaded and installed by running the geotk-setup module.

Returns:
true if NADCON data seem to be present.

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-2012 Geotoolkit.org. All Rights Reserved.