Package org.locationtech.proj4j.datum
Class Grid
java.lang.Object
org.locationtech.proj4j.datum.Grid
- All Implemented Interfaces:
Serializable
A Grid represents a geodetic datum defining some mapping between a
coordinate system referenced to the surface of the earth and spherical
coordinates. Generally Grids are loaded from definition files in the proj4
resource directory.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Grid
private String
URI for accessing the grid definition fileprivate String
File format of the grid definition file, ie "ctable", "ntv1", "ntv2" or "missing"private String
Identifying name for this Grid.private int
(package private) static final int
private Grid
(package private) Grid.ConversionTable
(package private) static final double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
fromNadGrids
(String grids) private static Grid
gridinfoInit
(String gridName) int
hashCode()
static void
mergeGridFile
(String name, List<Grid> gridList) Merge (append) a named grid into the given gridlist.private static PolarCoordinate
nad_cvt
(PolarCoordinate in, boolean inverse, Grid.ConversionTable table) private static PolarCoordinate
nad_intr
(PolarCoordinate t, Grid.ConversionTable table) private static DataInputStream
resolveGridDefinition
(String gridName) static void
shift
(List<Grid> grids, boolean inverse, ProjCoordinate in) Convert between this grid and WGS84, or vice versa if theinverse
flag is set.toString()
-
Field Details
-
gridName
Identifying name for this Grid. eg "conus" or ntv2_0.gsb -
fileName
URI for accessing the grid definition file -
format
File format of the grid definition file, ie "ctable", "ntv1", "ntv2" or "missing" -
gridOffset
private int gridOffset -
MAX_TRY
static final int MAX_TRY- See Also:
-
TOL
static final double TOL- See Also:
-
table
Grid.ConversionTable table -
next
-
child
-
-
Constructor Details
-
Grid
public Grid()
-
-
Method Details
-
mergeGridFile
Merge (append) a named grid into the given gridlist.- Throws:
IOException
-
shift
Convert between this grid and WGS84, or vice versa if theinverse
flag is set. -
nad_cvt
private static PolarCoordinate nad_cvt(PolarCoordinate in, boolean inverse, Grid.ConversionTable table) -
nad_intr
-
fromNadGrids
- Throws:
IOException
-
gridinfoInit
- Throws:
IOException
-
resolveGridDefinition
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-