public class BinnedGSHHSReader.Bin
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
BinnedGSHHSReader.Bin.Segment
The segment class acts as a container for GSHHS shore segment
data.
|
Modifier and Type | Field and Description |
---|---|
static int |
EAST
The east side constant.
|
static int |
NORTH
The north side constant.
|
static int |
NORTH_EAST
The north-east corner.
|
static int |
NORTH_WEST
The north-west corner.
|
static int |
SOUTH
The south side constant.
|
static int |
SOUTH_EAST
The south-east corner.
|
static int |
SOUTH_WEST
The south-west corner.
|
static int |
WEST
The west side constant.
|
Constructor and Description |
---|
Bin(int binIndex)
Creates a new bin from the specified index.
|
Modifier and Type | Method and Description |
---|---|
EarthLocation |
getCorner()
Gets the south-west corner earth location.
|
EarthLocation |
getCorner(int index)
Gets the specified corner earth location.
|
byte |
getCornerLevel(int index)
Gets the specified corner level.
|
LineFeature |
getLineFeature(int index)
Gets an earth vector for the specified segment.
|
byte |
getMinimumLevel()
Gets the minimum bin corner level.
|
java.util.List |
getPolygonFeatures()
Gets the segments in this bin as a list of closed Earth
polygons.
|
BinnedGSHHSReader.Bin.Segment |
getSegment(int index)
Gets the specified segment.
|
int |
getSegments()
Gets the number of segments.
|
public static final int SOUTH_WEST
public static final int SOUTH_EAST
public static final int NORTH_EAST
public static final int NORTH_WEST
public static final int SOUTH
public static final int EAST
public static final int NORTH
public static final int WEST
public Bin(int binIndex) throws java.io.IOException
binIndex
- the bin index.java.io.IOException
BinnedGSHHSReader.getBinIndex(noaa.coastwatch.util.EarthLocation)
public int getSegments()
public BinnedGSHHSReader.Bin.Segment getSegment(int index)
public EarthLocation getCorner()
public EarthLocation getCorner(int index)
public byte getCornerLevel(int index)
public byte getMinimumLevel()
public LineFeature getLineFeature(int index)
index
- the index of the segment to convert.public java.util.List getPolygonFeatures()