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 Gridprivate StringURI for accessing the grid definition fileprivate StringFile format of the grid definition file, ie "ctable", "ntv1", "ntv2" or "missing"private StringIdentifying name for this Grid.private int(package private) static final intprivate Grid(package private) Grid.ConversionTable(package private) static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromNadGrids(String grids) private static GridgridinfoInit(String gridName) inthashCode()static voidmergeGridFile(String name, List<Grid> gridList) Merge (append) a named grid into the given gridlist.private static PolarCoordinatenad_cvt(PolarCoordinate in, boolean inverse, Grid.ConversionTable table) private static PolarCoordinatenad_intr(PolarCoordinate t, Grid.ConversionTable table) private static DataInputStreamresolveGridDefinition(String gridName) static voidshift(List<Grid> grids, boolean inverse, ProjCoordinate in) Convert between this grid and WGS84, or vice versa if theinverseflag 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 theinverseflag 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
-
equals
-
toString
-