Class Grid

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Grid
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Field Detail

      • gridName

        private java.lang.String gridName
        Identifying name for this Grid. eg "conus" or ntv2_0.gsb
      • fileName

        private java.lang.String fileName
        URI for accessing the grid definition file
      • format

        private java.lang.String format
        File format of the grid definition file, ie "ctable", "ntv1", "ntv2" or "missing"
      • gridOffset

        private int gridOffset
      • next

        private Grid next
      • child

        private Grid child
    • Constructor Detail

      • Grid

        public Grid()
    • Method Detail

      • mergeGridFile

        public static void mergeGridFile​(java.lang.String name,
                                         java.util.List<Grid> gridList)
                                  throws java.io.IOException
        Merge (append) a named grid into the given gridlist.
        Throws:
        java.io.IOException
      • shift

        public static void shift​(java.util.List<Grid> grids,
                                 boolean inverse,
                                 ProjCoordinate in)
        Convert between this grid and WGS84, or vice versa if the inverse flag is set.
      • fromNadGrids

        public static java.util.List<Grid> fromNadGrids​(java.lang.String grids)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • gridinfoInit

        private static Grid gridinfoInit​(java.lang.String gridName)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • resolveGridDefinition

        private static java.io.DataInputStream resolveGridDefinition​(java.lang.String gridName)
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object that)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object