ucar.nc2.ft
Interface ProfileFeatureCollection

All Superinterfaces:
FeatureCollection, NestedPointFeatureCollection

public interface ProfileFeatureCollection
extends NestedPointFeatureCollection

A collection of ProfileFeature.

Since:
Mar 19, 2008
Author:
caron

Method Summary
 boolean hasNext()
          Use the internal iterator to check if there is another ProfileFeature in the iteration.
 ProfileFeature next()
          Use the internal iterator to get the next ProfileFeature in the iteration.
 void resetIteration()
          Reset the internal iterator for another iteration over the ProfileFeatures in this Collection.
 ProfileFeatureCollection subset(LatLonRect boundingBox)
          Subset this collection by boundingBox
 
Methods inherited from interface ucar.nc2.ft.NestedPointFeatureCollection
flatten, getNestedPointFeatureCollectionIterator, getPointFeatureCollectionIterator, isMultipleNested, size
 
Methods inherited from interface ucar.nc2.ft.FeatureCollection
getCollectionFeatureType, getName
 

Method Detail

hasNext

boolean hasNext()
                throws java.io.IOException
Use the internal iterator to check if there is another ProfileFeature in the iteration.

Returns:
true is there is another ProfileFeature in the iteration.
Throws:
java.io.IOException - on read error

next

ProfileFeature next()
                    throws java.io.IOException
Use the internal iterator to get the next ProfileFeature in the iteration. You must call hasNext() before you call this.

Returns:
the next ProfileFeature in the iteration
Throws:
java.io.IOException - on read error

resetIteration

void resetIteration()
                    throws java.io.IOException
Reset the internal iterator for another iteration over the ProfileFeatures in this Collection.

Throws:
java.io.IOException - on read error

subset

ProfileFeatureCollection subset(LatLonRect boundingBox)
                                throws java.io.IOException
Subset this collection by boundingBox

Specified by:
subset in interface NestedPointFeatureCollection
Parameters:
boundingBox - want only profiles in this lat/lon bounding box.
Returns:
subsetted collection, may be null if empty
Throws:
java.io.IOException - on read error