public interface PointFeatureIterator
try { while (iter.hasNext()) process(iter.next()); } finally { iter.finish(); }
Modifier and Type | Interface and Description |
---|---|
static interface |
PointFeatureIterator.Filter
A filter on PointFeatures
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Make sure that the iterator is complete, and recover resources.
|
LatLonRect |
getBoundingBox()
Get BoundingBox after iteration is finished, if calcBounds was set true
|
CalendarDateRange |
getCalendarDateRange()
Get DateRange of observation time after iteration is finished, if calcBounds was set true
|
int |
getCount()
Get number of points after the iteration is finished, if calcBounds was set true
|
DateRange |
getDateRange()
Deprecated.
use getCalendarDateRange()
|
boolean |
hasNext()
Check if another PointFeature is available
|
PointFeature |
next()
Returns the next PointFeature.
|
void |
setBufferSize(int bytes)
Hint to use this much memory in buffering the iteration.
|
void |
setCalculateBounds(PointFeatureCollection collection)
If this is set, then the iterator will calculate the bounding box, time range, and size,
and make it available through getBoundingBox(), getDateRange(), and getSize().
|
boolean hasNext() throws java.io.IOException
java.io.IOException
- on i/o errorPointFeature next() throws java.io.IOException
java.io.IOException
- on i/o errorvoid finish()
void setBufferSize(int bytes)
bytes
- amount of memory in bytesvoid setCalculateBounds(PointFeatureCollection collection)
collection
- if not null, on complete iteration set the results into the collection.LatLonRect getBoundingBox()
DateRange getDateRange()
CalendarDateRange getCalendarDateRange()
int getCount()