|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PointFeatureCollection
A collection of PointFeatures.
Method Summary | |
---|---|
void |
calcBounds()
Caclulate date range and bounding box, and size, even if the data has to be scanned. |
void |
finish()
Make sure that the internal iterator is complete, and recover resources. |
LatLonRect |
getBoundingBox()
The boundingBox for the FeatureCollection. |
DateRange |
getDateRange()
Date range for the FeatureCollection. |
PointFeatureIterator |
getPointFeatureIterator(int bufferSize)
Get an iterator over the PointFeatures of this collection |
boolean |
hasNext()
Use the internal iterator to check if there is another PointFeature in the iteration. |
PointFeature |
next()
Use the internal iterator to get the next PointFeature in the iteration. |
void |
resetIteration()
Reset the internal iterator for another iteration over the PointFeatures in this Collection. |
void |
setBoundingBox(LatLonRect bb)
Set the boundingBox for the FeatureCollection. |
void |
setDateRange(DateRange range)
Set the date range for the FeatureCollection. |
void |
setSize(int npts)
Set the size of the FeatureCollection. |
int |
size()
The number of points in the collection. |
PointFeatureCollection |
subset(LatLonRect boundingBox,
DateRange dateRange)
Subset this collection by boundingBox and/or dateRange |
Methods inherited from interface ucar.nc2.ft.FeatureCollection |
---|
getCollectionFeatureType, getName |
Method Detail |
---|
boolean hasNext() throws java.io.IOException
java.io.IOException
- on read errorPointFeatureIterator.hasNext()
PointFeature next() throws java.io.IOException
java.io.IOException
- on read errorPointFeatureIterator.next()
void resetIteration() throws java.io.IOException
java.io.IOException
- on read errorvoid finish()
PointFeatureIterator.finish()
int size()
DateRange getDateRange()
LatLonRect getBoundingBox()
void setDateRange(DateRange range)
range
- the date range for the entire collectionvoid setBoundingBox(LatLonRect bb)
bb
- the lat/lon boundingBox for the entire collection.void setSize(int npts)
npts
- size of the collectionvoid calcBounds() throws java.io.IOException
java.io.IOException
- or read error.PointFeatureIterator getPointFeatureIterator(int bufferSize) throws java.io.IOException
bufferSize
- how many bytes can be used to buffer data, use -1 to use default.
java.io.IOException
- on read errorPointFeatureCollection subset(LatLonRect boundingBox, DateRange dateRange) throws java.io.IOException
boundingBox
- only points in this lat/lon bounding box. may be null.dateRange
- only points in this date range. may be null.
java.io.IOException
- on read error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |