Package noaa.coastwatch.render.feature
Class BinnedGSHHSLineReader.Bin.Segment
java.lang.Object
noaa.coastwatch.render.feature.BinnedGSHHSLineReader.Bin.Segment
- Enclosing class:
- BinnedGSHHSLineReader.Bin
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
ConstructorDescriptionSegment
(byte level, short[] dx, short[] dy) Creates a new segment from the specified parameters. -
Method Summary
-
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
Returns a string representation of this segment. -
getLevel
public byte getLevel()Gets the segment level. -
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.
-