Package noaa.coastwatch.render.feature
Class BinnedGSHHSLineReader.Bin
java.lang.Object
noaa.coastwatch.render.feature.BinnedGSHHSLineReader.Bin
- Enclosing class:
- BinnedGSHHSLineReader
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
TheSegment
class acts as a container for GSHHS line segment data. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the south-west corner earth location.getLineFeature
(int index) Gets an earth vector for the specified segment.getSegment
(int index) Gets the specified segment.int
Gets the number of segments.
-
Constructor Details
-
Bin
Creates a new bin from the specified index. The segments are read into the bin using the current maximum hierarchical level.- Parameters:
binIndex
- the bin index.- Throws:
IOException
- See Also:
-
-
Method Details
-
getSegments
public int getSegments()Gets the number of segments. -
getSegment
Gets the specified segment. -
getCorner
Gets the south-west corner earth location. -
getLineFeature
Gets an earth vector for the specified segment.- Parameters:
index
- the index of the segment to convert.- Returns:
- the new earth vector.
-