public class BinnedGSHHSLineReader.Bin.Segment
extends java.lang.Object
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 and Description |
---|
Segment(byte level,
short[] dx,
short[] dy)
Creates a new segment from the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
short[] |
getDx()
Gets the raw segment longitude offsets.
|
short[] |
getDy()
Gets the raw segment latitude offsets.
|
byte |
getLevel()
Gets the segment level.
|
LineFeature |
getLineFeature()
Gets the earth vector for this segment.
|
java.lang.String |
toString()
Returns a string representation of this segment.
|
public Segment(byte level, short[] dx, short[] dy)
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.public java.lang.String toString()
toString
in class java.lang.Object
public byte getLevel()
public LineFeature getLineFeature()
public short[] getDx()
public short[] getDy()