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(java.lang.String name,
CalendarDateUnit timeUnit,
java.lang.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.
|
java.util.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, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPointFeatureIterator
getAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getName, getTimeUnit, size
protected PointFeatureIterator localIterator
protected PointCollectionImpl(java.lang.String name, CalendarDateUnit timeUnit, java.lang.String altUnits)
@Nonnull public FeatureType getCollectionFeatureType()
DsgFeatureCollection
getCollectionFeatureType
in interface DsgFeatureCollection
public PointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
PointFeatureCollection
subset
in interface PointFeatureCollection
boundingBox
- only points in this lat/lon bounding box. may be null.dateRange
- only points in this date range. may be null.public java.util.Iterator<PointFeature> iterator()
iterator
in interface java.lang.Iterable<PointFeature>
public boolean hasNext() throws java.io.IOException
PointFeatureCollection
hasNext
in interface PointFeatureCollection
java.io.IOException
- on read errorPointFeatureIterator.hasNext()
public void finish()
PointFeatureCollection
finish
in interface PointFeatureCollection
public PointFeature next()
PointFeatureCollection
next
in interface PointFeatureCollection
PointFeatureIterator.next()
public void resetIteration() throws java.io.IOException
PointFeatureCollection
resetIteration
in interface PointFeatureCollection
java.io.IOException
- on read error