Class BinnedGSHHSLineReader.Bin.Segment

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

public class BinnedGSHHSLineReader.Bin.Segment extends Object
The Segment class acts as a container for GSHHS line segment data. Segments are part of a larger GSHHS line feature that has been divided into shorter sections based on their respective bins.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Segment(byte level, short[] dx, short[] dy)
    Creates a new segment from the specified parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    short[]
    Gets the raw segment longitude offsets.
    short[]
    Gets the raw segment latitude offsets.
    byte
    Gets the segment level.
    Gets the earth vector for this segment.
    Returns a string representation of this segment.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Segment

      public Segment(byte level, short[] dx, short[] dy)
      Creates a new segment from the specified parameters.
      Parameters:
      level - the segment level: land, lake, island, or pond.
      dx - the array of scaled longitudes relative to the bin corner.
      dy - the array of scaled latitudes relative to the bin corner.
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this segment.
      Overrides:
      toString in class Object
    • getLevel

      public byte getLevel()
      Gets the segment level.
    • getLineFeature

      public LineFeature getLineFeature()
      Gets the earth vector for this segment.
    • getDx

      public short[] getDx()
      Gets the raw segment longitude offsets.
    • getDy

      public short[] getDy()
      Gets the raw segment latitude offsets.