Class NTv2
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.NTv2
- All Implemented Interfaces:
Serializable
,Formattable
,MathTransformProvider
,Deprecable
,LenientComparable
,org.opengis.referencing.IdentifiedObject
,org.opengis.referencing.operation.OperationMethod
The provider for "National Transformation version 2" (EPSG:9615).
This transform requires data that are not bundled by default with Apache SIS.
- Since:
- 0.7
- Version:
- 1.3
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.opengis.parameter.ParameterDescriptor
<Path> The operation parameter descriptor for the "Latitude and 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 TypeMethodDescription(package private) static org.opengis.referencing.operation.MathTransform
createMathTransform
(Class<? extends AbstractProvider> provider, org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values, int version) Creates a transform from the specified group of parameter values.org.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> getOrLoad
(Class<? extends AbstractProvider> provider, Path file, int version) 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:
-
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.Parameter names EPSG: Latitude and longitude difference file - No default value
-
PARAMETERS
private static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERSThe group of all parameters expected by this coordinate operation.
-
-
Constructor Details
-
NTv2
public NTv2()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.
-
createMathTransform
static org.opengis.referencing.operation.MathTransform createMathTransform(Class<? extends AbstractProvider> provider, org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values, int version) throws org.opengis.parameter.ParameterNotFoundException, org.opengis.util.FactoryException Creates a transform from the specified group of parameter values.- Parameters:
provider
- the provider which is creating a transform:NTv2
orNTv1
.factory
- the factory to use if this constructor needs to create other math transforms.values
- the group of parameter values.version
- the expected version (1 or 2).- 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(Class<? extends AbstractProvider> provider, Path file, int version) 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:
provider
- the provider which is creating a transform.file
- name of the datum shift grid file to load.version
- the expected version (1 or 2).- Throws:
org.opengis.util.FactoryException
-