public abstract class PointCollectionImpl extends Object implements PointFeatureCollection
| Modifier and Type | Class and Description |
|---|---|
protected class |
PointCollectionImpl.PointCollectionSubset |
| Modifier and Type | Field and Description |
|---|---|
protected LatLonRect |
boundingBox |
protected CalendarDateRange |
dateRange |
protected PointFeatureIterator |
localIterator |
protected String |
name |
protected int |
npts |
| Modifier | Constructor and Description |
|---|---|
protected |
PointCollectionImpl(String name) |
protected |
PointCollectionImpl(String name,
LatLonRect boundingBox,
CalendarDateRange dateRange,
int npts) |
| 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.
|
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type
|
DateRange |
getDateRange()
Date range for the FeatureCollection.
|
String |
getName()
Get the name of this feature 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)
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,
CalendarDateRange dateRange)
Subset this collection by boundingBox and/or dateRange
|
PointFeatureCollection |
subset(LatLonRect boundingBox,
DateRange dateRange) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPointFeatureIteratorprotected String name
protected LatLonRect boundingBox
protected CalendarDateRange dateRange
protected int npts
protected PointFeatureIterator localIterator
protected PointCollectionImpl(String name)
protected PointCollectionImpl(String name, LatLonRect boundingBox, CalendarDateRange dateRange, int npts)
public String getName()
FeatureCollectiongetName in interface FeatureCollectionpublic boolean hasNext()
throws IOException
PointFeatureCollectionhasNext in interface PointFeatureCollectionIOException - on read errorPointFeatureIterator.hasNext()public void finish()
PointFeatureCollectionfinish in interface PointFeatureCollectionPointFeatureIterator.finish()public PointFeature next() throws IOException
PointFeatureCollectionnext in interface PointFeatureCollectionIOException - on read errorPointFeatureIterator.next()public void resetIteration()
throws IOException
PointFeatureCollectionresetIteration in interface PointFeatureCollectionIOException - on read errorpublic int size()
PointFeatureCollectionsize in interface PointFeatureCollectionpublic DateRange getDateRange()
PointFeatureCollectiongetDateRange in interface PointFeatureCollectionpublic CalendarDateRange getCalendarDateRange()
PointFeatureCollectiongetCalendarDateRange in interface PointFeatureCollectionpublic LatLonRect getBoundingBox()
PointFeatureCollectiongetBoundingBox in interface PointFeatureCollectionpublic void setDateRange(DateRange range)
PointFeatureCollectionsetDateRange in interface PointFeatureCollectionrange - the date range for the entire collectionpublic void setCalendarDateRange(CalendarDateRange range)
PointFeatureCollectionsetCalendarDateRange in interface PointFeatureCollectionrange - the calendar date range for the entire collectionpublic void setBoundingBox(LatLonRect bb)
PointFeatureCollectionsetBoundingBox in interface PointFeatureCollectionbb - the lat/lon boundingBox for the entire collection.public void calcBounds()
throws IOException
PointFeatureCollectioncalcBounds in interface PointFeatureCollectionIOException - or read error.public void setSize(int npts)
PointFeatureCollectionsetSize in interface PointFeatureCollectionnpts - size of the collectionpublic FeatureType getCollectionFeatureType()
FeatureCollectiongetCollectionFeatureType in interface FeatureCollectionpublic PointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange) throws IOException
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.IOException - on read errorpublic PointFeatureCollection subset(LatLonRect boundingBox, DateRange dateRange) throws IOException
subset in interface PointFeatureCollectionIOExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.