Class BinnedGSHHSLineReader.Bin

java.lang.Object
noaa.coastwatch.render.feature.BinnedGSHHSLineReader.Bin
Enclosing class:
BinnedGSHHSLineReader

public class BinnedGSHHSLineReader.Bin extends Object
The bin class acts as a container for GSHHS segments. Each bin contains a number of segments and a corner location. Bin indexing starts at 0 at (90N, 0E) and proceeds west to east, north to south.
  • Constructor Details

  • Method Details

    • getSegments

      public int getSegments()
      Gets the number of segments.
    • getSegment

      public BinnedGSHHSLineReader.Bin.Segment getSegment(int index)
      Gets the specified segment.
    • getCorner

      public EarthLocation getCorner()
      Gets the south-west corner earth location.
    • getLineFeature

      public LineFeature getLineFeature(int index)
      Gets an earth vector for the specified segment.
      Parameters:
      index - the index of the segment to convert.
      Returns:
      the new earth vector.