ucar.nc2.ft.point
Class PointIteratorAbstract
java.lang.Object
ucar.nc2.ft.point.PointIteratorAbstract
- All Implemented Interfaces:
- PointFeatureIterator
- Direct Known Subclasses:
- PointIteratorEmpty, PointIteratorFiltered, PointIteratorFlatten, PointIteratorFromStructureData, RemotePointFeatureIterator
public abstract class PointIteratorAbstract
- extends Object
- implements PointFeatureIterator
Abstract superclass for PointFeatureIterator.
Mostly implements the bounds calculations.
- Since:
- May 11, 2009
- Author:
- caron
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calcBounds
protected boolean calcBounds
collection
protected PointFeatureCollection collection
PointIteratorAbstract
protected PointIteratorAbstract()
setCalculateBounds
public void setCalculateBounds(PointFeatureCollection collection)
- Description copied from interface:
PointFeatureIterator
- If this is set, then the iterator will calculate the bounding box, time range, and size,
and make it available through getBoundingBox(), getDateRange(), and getSize().
- Specified by:
setCalculateBounds
in interface PointFeatureIterator
- Parameters:
collection
- if not null, on complete iteration set the results into the collection.
calcBounds
protected void calcBounds(PointFeature pf)
finishCalcBounds
protected void finishCalcBounds()
getBoundingBox
public LatLonRect getBoundingBox()
- Description copied from interface:
PointFeatureIterator
- Get BoundingBox after iteration is finished, if calcBounds was set true
- Specified by:
getBoundingBox
in interface PointFeatureIterator
- Returns:
- BoundingBox of all returned points
getDateRange
public DateRange getDateRange()
- Description copied from interface:
PointFeatureIterator
- Get DateRange of observation time after iteration is finished, if calcBounds was set true
- Specified by:
getDateRange
in interface PointFeatureIterator
- Returns:
- DateRange of all returned points
getCount
public int getCount()
- Description copied from interface:
PointFeatureIterator
- Get number of points after the iteration is finished, if calcBounds was set true
- Specified by:
getCount
in interface PointFeatureIterator
- Returns:
- number of points in the iteration
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.