ucar.nc2.ft.point.standard
Class StandardTrajectoryCollectionImpl
java.lang.Object
ucar.nc2.ft.point.OneNestedPointCollectionImpl
ucar.nc2.ft.point.standard.StandardTrajectoryCollectionImpl
- All Implemented Interfaces:
- FeatureCollection, NestedPointFeatureCollection, TrajectoryFeatureCollection
public class StandardTrajectoryCollectionImpl
- extends OneNestedPointCollectionImpl
- implements TrajectoryFeatureCollection
TrajectoryFeatureCollection using nested tables.
- Since:
- Dec 31, 2008
- Author:
- caron
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardTrajectoryCollectionImpl
protected StandardTrajectoryCollectionImpl(String name)
getPointFeatureCollectionIterator
public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize)
throws IOException
- Description copied from interface:
NestedPointFeatureCollection
- Iterate through the collection, composed of PointFeatureCollection. Use this only if isMultipleNested() = false.
- Specified by:
getPointFeatureCollectionIterator
in interface NestedPointFeatureCollection
- Parameters:
bufferSize
- how many bytes can be used to buffer data, use -1 to use default.
- Returns:
- an iterator through PointFeatureCollection objects.
- Throws:
IOException
- on read error
hasNext
public boolean hasNext()
throws IOException
- Description copied from interface:
TrajectoryFeatureCollection
- Use the internal iterator to check if there is another TrajectoryFeature in the iteration.
- Specified by:
hasNext
in interface TrajectoryFeatureCollection
- Returns:
- true is there is another TrajectoryFeature in the iteration.
- Throws:
IOException
- on read error
subset
public TrajectoryFeatureCollection subset(LatLonRect boundingBox)
throws IOException
- Description copied from interface:
NestedPointFeatureCollection
- Get a subsetted NestedPointFeatureCollection based on a LatLonRect
- Specified by:
subset
in interface NestedPointFeatureCollection
- Parameters:
boundingBox
- spatial subset
- Returns:
- subsetted collection
- Throws:
IOException
- on i/o error
next
public TrajectoryFeature next()
throws IOException
- Description copied from interface:
TrajectoryFeatureCollection
- Use the internal iterator to get the next TrajectoryFeature in the iteration.
You must call hasNext() before you call this.
- Specified by:
next
in interface TrajectoryFeatureCollection
- Returns:
- the next TrajectoryFeature in the iteration
- Throws:
IOException
- on read error
resetIteration
public void resetIteration()
throws IOException
- Description copied from interface:
TrajectoryFeatureCollection
- Reset the internal iterator for another iteration over the TrajectoryFeatures in this Collection.
- Specified by:
resetIteration
in interface TrajectoryFeatureCollection
- Throws:
IOException
- on read error
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.