|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cts.IdentifiableComponent
org.cts.op.AbstractCoordinateOperation
org.cts.op.transformation.NTv2GridShiftTransformation
public class NTv2GridShiftTransformation
Geographic Offset by Interpolation of Gridded Data.
The relationship between some geographical 2D coordinate reference systems is available through gridded data sets of latitude and longitude offsets.
| Field Summary | |
|---|---|
static int |
LOW_MEMORY
|
static int |
SPEED
|
| Fields inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
precision |
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
NTv2GridShiftTransformation(URL ntv2_gridFile)
NTv2GridShiftTransformation constructor. |
|
NTv2GridShiftTransformation(URL ntv2_gridFile,
double precision)
NTv2GridShiftTransformation constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.cts.op.AbstractCoordinateOperation |
|---|
getPrecision |
| Methods inherited from class org.cts.IdentifiableComponent |
|---|
addAlias, addRemark, equals, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, hashCode, setIdentifier, setRemarks, setShortName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.cts.Identifiable |
|---|
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName |
| Field Detail |
|---|
public static final int SPEED
public static final int LOW_MEMORY
| Constructor Detail |
|---|
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 grid| Method Detail |
|---|
public static NTv2GridShiftTransformation createNTv2GridShiftTransformation(String ntv2_gridName)
throws URISyntaxException,
MalformedURLException,
NullPointerException
ntv2_gridName - the name of the file that defined the wanted grid
transformation (for instance : ntf_r93.gsb).
URISyntaxException
MalformedURLException
NullPointerException
public double[] transform(double[] coord)
throws IllegalCoordinateException
transform in interface CoordinateOperationtransform in class AbstractCoordinateOperationcoord - coordinate to shift
IllegalCoordinateException - if coord is not
compatible with this CoordinateOperation.
public CoordinateOperation inverse()
throws NonInvertibleOperationException
inverse in interface CoordinateOperationinverse in class AbstractCoordinateOperationNonInvertibleOperationException
public void loadGridShiftFile()
throws IOException
IOExceptionpublic boolean isLoaded()
public void unload()
throws IOException
IOException
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||