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.
|
java.lang.String |
getAltUnits()
The altitude unit string if it exists.
|
LatLonRect |
getBoundingBox()
The boundingBox for the FeatureCollection.
|
CalendarDateRange |
getCalendarDateRange()
Calendar date range for the FeatureCollection.
|
DateRange |
getDateRange()
Deprecated.
use getCalendarDateRange()
|
java.util.List<Variable> |
getExtraVariables()
Other variables needed for co,pleteness, eg joined coordinate variables
|
PointFeatureIterator |
getPointFeatureIterator(int bufferSize)
Get an iterator over the PointFeatures of this collection.
|
DateUnit |
getTimeUnit()
The udunit time unit string.
|
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, getNameDateUnit getTimeUnit()
java.lang.String getAltUnits()
java.util.List<Variable> getExtraVariables()
boolean hasNext()
throws java.io.IOException
java.io.IOException - on read errorPointFeatureIterator.hasNext()PointFeature next() throws java.io.IOException
java.io.IOException - on read errorPointFeatureIterator.next()void resetIteration()
throws java.io.IOException
java.io.IOException - on read errorvoid finish()
PointFeatureIterator.finish()PointFeatureIterator getPointFeatureIterator(int bufferSize) throws java.io.IOException
bufferSize - how many bytes can be used to buffer data, use -1 to use default.java.io.IOException - on read errorint 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 java.io.IOException
java.io.IOException - or read error.PointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange) throws java.io.IOException
boundingBox - only points in this lat/lon bounding box. may be null.dateRange - only points in this date range. may be null.java.io.IOException - on read errorPointFeatureCollection subset(LatLonRect boundingBox, DateRange dateRange) throws java.io.IOException
java.io.IOException