All Implemented Interfaces:
Serializable, Formattable, MathTransformProvider, Deprecable, LenientComparable, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.OperationMethod

public final class NADCON extends AbstractProvider
The provider for "North American Datum Conversion" (EPSG:9613). This transform requires data that are not bundled by default with Apache SIS.

The files given in parameters are theoretically binary files. However, this provider accepts also ASCII files. Those two kinds of files are recognized automatically; there is no need to specify whether the files are ASCII or binary.

Since:
0.7
Version:
1.3
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
    • LATITUDE

      private static final org.opengis.parameter.ParameterDescriptor<Path> LATITUDE
      The operation parameter descriptor for the "Latitude difference file" parameter value. The default value is "conus.las".
      Parameter names
      EPSG: Latitude difference file
      Notes:
      • Default value: conus.las
    • LONGITUDE

      private static final org.opengis.parameter.ParameterDescriptor<Path> LONGITUDE
      The operation parameter descriptor for the "Longitude difference file" parameter value. The default value is "conus.los".
      Parameter names
      EPSG: Longitude difference file
      Notes:
      • Default value: conus.los
    • PARAMETERS

      private static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERS
      The group of all parameters expected by this coordinate operation.
  • Constructor Details

    • NADCON

      public NADCON()
      Creates a new provider.
  • Method Details

    • createMathTransform

      public org.opengis.referencing.operation.MathTransform createMathTransform(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) throws org.opengis.parameter.ParameterNotFoundException, org.opengis.util.FactoryException
      Creates a transform from the specified group of parameter values.
      Parameters:
      factory - the factory to use if this constructor needs to create other math transforms.
      values - the group of parameter values.
      Returns:
      the created math transform.
      Throws:
      org.opengis.parameter.ParameterNotFoundException - if a required parameter was not found.
      org.opengis.util.FactoryException - if an error occurred while loading the grid.
    • getOrLoad

      static DatumShiftGridFile<javax.measure.quantity.Angle,javax.measure.quantity.Angle> getOrLoad(Path latitudeShifts, Path longitudeShifts) throws org.opengis.util.FactoryException
      Returns the grid of the given name. This method returns the cached instance if it still exists, or load the grid otherwise.
      Parameters:
      latitudeShifts - name of the grid file for latitude shifts.
      longitudeShifts - name of the grid file for longitude shifts.
      Throws:
      org.opengis.util.FactoryException