|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.com.objectix.jgridshift.SubGrid
Models the NTv2 Sub Grid within a Grid Shift File
| Constructor Summary | |
SubGrid(java.io.InputStream in,
boolean bigEndian,
boolean loadAccuracy)
Construct a Sub Grid from an InputStream, loading the node data into arrays in this object. |
|
SubGrid(java.io.RandomAccessFile raf,
long subGridOffset,
boolean bigEndian)
Construct a Sub Grid from a RandomAccessFile. |
|
| Method Summary | |
java.lang.Object |
clone()
Make a deep clone of this Sub Grid |
java.lang.String |
getDetails()
|
double |
getMaxLat()
|
double |
getMaxLon()
|
double |
getMinLat()
|
double |
getMinLon()
|
int |
getNodeCount()
|
java.lang.String |
getParentSubGridName()
|
SubGrid |
getSubGrid(int index)
|
int |
getSubGridCount()
|
SubGrid |
getSubGridForCoord(double lon,
double lat)
Tests if a specified coordinate is within this Sub Grid or one of its Sub Grids. |
java.lang.String |
getSubGridName()
|
GridShift |
interpolateGridShift(GridShift gs)
Interpolate shift and accuracy values for a coordinate in the 'from' datum of the GridShiftFile. |
void |
setSubGridArray(SubGrid[] subGrid)
Set an array of Sub Grids of this sub grid |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SubGrid(java.io.InputStream in,
boolean bigEndian,
boolean loadAccuracy)
throws java.io.IOException
in - GridShiftFile InputStreambigEndian - is the file bigEndian?loadAccuracy - is the node Accuracy data to be loaded?
java.lang.Exception
java.io.IOException
public SubGrid(java.io.RandomAccessFile raf,
long subGridOffset,
boolean bigEndian)
throws java.io.IOException
bigEndian - is the file bigEndian?
java.lang.Exception
java.io.IOException| Method Detail |
public SubGrid getSubGridForCoord(double lon,
double lat)
lon - Longitude in Positive West Secondslat - Latitude in Seconds
public GridShift interpolateGridShift(GridShift gs)
throws java.io.IOException
This method is thread safe for both memory based and file based node data.
gs - GridShift object containing the coordinate to shift and the shift values
java.io.IOExceptionpublic java.lang.String getParentSubGridName()
public java.lang.String getSubGridName()
public int getNodeCount()
public int getSubGridCount()
public SubGrid getSubGrid(int index)
public void setSubGridArray(SubGrid[] subGrid)
subGrid - public java.lang.String toString()
public java.lang.String getDetails()
public java.lang.Object clone()
public double getMaxLat()
public double getMaxLon()
public double getMinLat()
public double getMinLon()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||