public abstract class PointCollectionImpl extends DsgCollectionImpl implements PointFeatureCollection
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PointCollectionImpl.PointCollectionSubset |
| Modifier and Type | Field and Description |
|---|---|
protected PointFeatureIterator |
localIterator |
| Modifier | Constructor and Description |
|---|---|
protected |
PointCollectionImpl(String name,
CalendarDateUnit timeUnit,
String altUnits) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Make sure that the internal iterator is complete, and recover resources.
|
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type
|
boolean |
hasNext()
Use the internal iterator to check if there is another PointFeature in the iteration.
|
Iterator<PointFeature> |
iterator() |
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.
|
PointFeatureCollection |
subset(LatLonRect boundingBox,
CalendarDateRange dateRange)
Subset this collection by boundingBox and/or dateRange
|
getAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getInfo, getName, getNobs, getTimeUnit, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPointFeatureIteratorgetAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getName, getTimeUnit, sizeforEach, spliteratorprotected PointFeatureIterator localIterator
protected PointCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
@Nonnull public FeatureType getCollectionFeatureType()
DsgFeatureCollectiongetCollectionFeatureType in interface DsgFeatureCollectionpublic PointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
PointFeatureCollectionsubset in interface PointFeatureCollectionboundingBox - only points in this lat/lon bounding box. may be null.dateRange - only points in this date range. may be null.public Iterator<PointFeature> iterator()
iterator in interface Iterable<PointFeature>public boolean hasNext()
throws IOException
PointFeatureCollectionhasNext in interface PointFeatureCollectionIOException - on read errorPointFeatureIterator.hasNext()public void finish()
PointFeatureCollectionfinish in interface PointFeatureCollectionpublic PointFeature next()
PointFeatureCollectionnext in interface PointFeatureCollectionPointFeatureIterator.next()public void resetIteration()
throws IOException
PointFeatureCollectionresetIteration in interface PointFeatureCollectionIOException - on read error