public class NTv2GridShiftTransformation extends AbstractCoordinateOperation implements GridBasedTransformation
The relationship between some geographical 2D coordinate reference systems is available through gridded data sets of latitude and longitude offsets.
| Modifier and Type | Field and Description |
|---|---|
static int |
LOW_MEMORY |
static int |
SPEED |
precisionDEFAULT, LOCAL, UNKNOWN| Constructor and Description |
|---|
NTv2GridShiftTransformation(URL ntv2_gridFile)
NTv2GridShiftTransformation constructor.
|
NTv2GridShiftTransformation(URL ntv2_gridFile,
double precision)
NTv2GridShiftTransformation constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static NTv2GridShiftTransformation |
createNTv2GridShiftTransformation(String ntv2_gridName)
Create a NTv2GridShiftTransformation from the name of the file that
defined it.
|
String |
getFromDatum()
Return the short name of the datum from which the nadgrids transformation
must be used.
|
String |
getToDatum()
Return the short name of the datum toward which the nadgrids
transformation must be used.
|
CoordinateOperation |
inverse()
Creates the inverse CoordinateOperation.
|
boolean |
isLoaded()
Return whether the grid shift file used by this transformation is loaded
or not.
|
void |
loadGridShiftFile()
Load the grid file that will be used to transform the coordinates.
|
boolean |
setMode(int mode)
Set the mode to access the grid shift file.
|
String |
toString()
Returns this Geocentric translation as a String.
|
double[] |
transform(double[] coord)
Shift geographic coordinates (in decimal degrees) by an offset
interpolated in a grid.
|
void |
unload()
Unload the grid shift file used by this transformation.
|
getPrecision, isIdentityaddAlias, addRemark, equals, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortNamepublic static final int SPEED
public static final int LOW_MEMORY
public NTv2GridShiftTransformation(URL ntv2_gridFile, double precision)
ntv2_gridFile - file containing the description of the NTv2 gridprecision - mean precision of the geodetic transformationpublic NTv2GridShiftTransformation(URL ntv2_gridFile)
ntv2_gridFile - file containing the description of the NTv2 gridpublic static NTv2GridShiftTransformation createNTv2GridShiftTransformation(String ntv2_gridName) throws NullPointerException, IOException
ntv2_gridName - the name of the file that defined the wanted grid
transformation (for instance : ntf_r93.gsb).NullPointerExceptionIOExceptionpublic double[] transform(double[] coord)
throws IllegalCoordinateException
transform in interface CoordinateOperationtransform in class AbstractCoordinateOperationcoord - coordinate to shiftIllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.public CoordinateOperation inverse()
inverse in interface CoordinateOperationinverse in class AbstractCoordinateOperationNonInvertibleOperationExceptionpublic void loadGridShiftFile()
throws IOException
IOExceptionpublic boolean isLoaded()
public void unload()
throws IOException
IOExceptionpublic boolean setMode(int mode)
throws IOException
mode - an integer representing a mode to access to grid shift file
(see description above)IOExceptionpublic String toString()
toString in class IdentifiableComponentpublic String getFromDatum()
public String getToDatum()
Copyright © 2019 CNRS. All rights reserved.