Class GSHHSReader.PolygonHeader

java.lang.Object
noaa.coastwatch.render.feature.GSHHSReader.PolygonHeader
Enclosing class:
GSHHSReader

public class GSHHSReader.PolygonHeader extends Object
The GSHHS polygon header class acts as a container for the GSHHS reader class polygon header values. Each polygon is a GSHHS database is accompanied by a list of header attributes. An instance of this class is returned by the GSHHSReader.readHeader(java.io.DataInput) routine.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The area of the polygon in km^2.
    double
    The maximum eastern value in degrees [-180..180].
    short
    The Greenwich-crossing flag, 1 if Greenwich is crossed or 0 if not.
    int
    The unique polygon id number, starting at 0.
    static final int
    Island in lake level constant.
    static final int
    Lake level constant.
    static final int
    Land level constant.
    int
    The polygon level [1..4].
    int
    The number of points in this polygon.
    double
    The maximum northern value in degrees [-90..90].
    static final int
    Pond in island in lake level constant.
    short
    The data source, 0 for CIA WDBII or 1 or WVS.
    double
    The maximum southern value in degrees [-90..90].
    double
    The maximum western value in degrees [-180..180].
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LAND

      public static final int LAND
      Land level constant.
      See Also:
    • LAKE

      public static final int LAKE
      Lake level constant.
      See Also:
    • ISLAND_IN_LAKE

      public static final int ISLAND_IN_LAKE
      Island in lake level constant.
      See Also:
    • POND_IN_ISLAND

      public static final int POND_IN_ISLAND
      Pond in island in lake level constant.
      See Also:
    • id

      public int id
      The unique polygon id number, starting at 0.
    • n

      public int n
      The number of points in this polygon.
    • level

      public int level
      The polygon level [1..4].
    • west

      public double west
      The maximum western value in degrees [-180..180].
    • east

      public double east
      The maximum eastern value in degrees [-180..180].
    • south

      public double south
      The maximum southern value in degrees [-90..90].
    • north

      public double north
      The maximum northern value in degrees [-90..90].
    • area

      public double area
      The area of the polygon in km^2.
    • greenwich

      public short greenwich
      The Greenwich-crossing flag, 1 if Greenwich is crossed or 0 if not.
    • source

      public short source
      The data source, 0 for CIA WDBII or 1 or WVS.
  • Constructor Details

    • PolygonHeader

      public PolygonHeader()