Class NADCON
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.AbstractIdentifiedObject
org.apache.sis.referencing.operation.DefaultOperationMethod
org.apache.sis.internal.referencing.provider.AbstractProvider
org.apache.sis.internal.referencing.provider.NADCON
- All Implemented Interfaces:
Serializable
,Formattable
,MathTransformProvider
,Deprecable
,LenientComparable
,org.opengis.referencing.IdentifiedObject
,org.opengis.referencing.operation.OperationMethod
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Loaders of NADCON data. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.opengis.parameter.ParameterDescriptor
<Path> The operation parameter descriptor for the "Latitude difference file" parameter value.private static final org.opengis.parameter.ParameterDescriptor
<Path> The operation parameter descriptor for the "Longitude difference file" parameter value.private static final org.opengis.parameter.ParameterDescriptorGroup
The group of all parameters expected by this coordinate operation.private static final long
Serial number for inter-operability with different versions.Fields inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
sourceCSType, sourceOnEllipsoid, targetCSType, targetOnEllipsoid
Fields inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
DEPRECATED_KEY, LOCALE_KEY
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Fields inherited from interface org.opengis.referencing.operation.OperationMethod
FORMULA_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.MathTransform
createMathTransform
(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) Creates a transform from the specified group of parameter values.(package private) static DatumShiftGridFile
<javax.measure.quantity.Angle, javax.measure.quantity.Angle> Returns the grid of the given name.Methods inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
addIdentifierAndLegacy, addNameAndLegacy, builder, createLatitude, createLongitude, createMandatoryLatitude, createScale, createShift, createZeroConstant, getOperationType, inverse, recoverableException, resolveAmbiguity
Methods inherited from class org.apache.sis.referencing.operation.DefaultOperationMethod
castOrCopy, computeHashCode, equals, formatTo, getFormula, getInterface, getParameters, getSourceDimensions, getTargetDimensions, redimension, redimension
Methods inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
castOrCopy, equals, formatTo, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKT
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
LATITUDE
The operation parameter descriptor for the "Latitude difference file" parameter value. The default value is"conus.las"
.Parameter names EPSG: Latitude difference file - Default value:
conus.las
- Default value:
-
LONGITUDE
The operation parameter descriptor for the "Longitude difference file" parameter value. The default value is"conus.los"
.Parameter names EPSG: Longitude difference file - Default value:
conus.los
- Default value:
-
PARAMETERS
private static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERSThe 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
-