public interface PointFeatureCollection extends FeatureCollection
| Modifier and Type | Method and Description |
|---|---|
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.
|
CalendarDateRange |
getCalendarDateRange()
Calendar date range for the FeatureCollection.
|
DateRange |
getDateRange()
Deprecated.
use getCalendarDateRange()
|
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 |
setCalendarDateRange(CalendarDateRange range)
Set the calendar date range for the FeatureCollection.
|
void |
setDateRange(DateRange range)
Deprecated.
use setCalendarDateRange()
|
void |
setSize(int npts)
Set the size of the FeatureCollection.
|
int |
size()
The number of points in the collection.
|
PointFeatureCollection |
subset(LatLonRect boundingBox,
CalendarDateRange dateRange)
Subset this collection by boundingBox and/or dateRange
|
PointFeatureCollection |
subset(LatLonRect boundingBox,
DateRange dateRange)
Deprecated.
use CalendarDateRange
|
getCollectionFeatureType, getNameboolean hasNext()
throws IOException
IOException - on read errorPointFeatureIterator.hasNext()PointFeature next() throws IOException
IOException - on read errorPointFeatureIterator.next()void resetIteration()
throws IOException
IOException - on read errorvoid finish()
PointFeatureIterator.finish()int size()
DateRange getDateRange()
CalendarDateRange getCalendarDateRange()
LatLonRect getBoundingBox()
void setDateRange(DateRange range)
range - the date range for the entire collectionvoid setCalendarDateRange(CalendarDateRange range)
range - the calendar 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 IOException
IOException - or read error.PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException
bufferSize - how many bytes can be used to buffer data, use -1 to use default.IOException - on read errorPointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange) throws IOException
boundingBox - only points in this lat/lon bounding box. may be null.dateRange - only points in this date range. may be null.IOException - on read errorPointFeatureCollection subset(LatLonRect boundingBox, DateRange dateRange) throws IOException
IOExceptionCopyright © 1999-2012 UCAR/Unidata. All Rights Reserved.