ucar.nc2.ft.point.collection
Class CompositePointCollection

java.lang.Object
  extended by ucar.nc2.ft.point.PointCollectionImpl
      extended by ucar.nc2.ft.point.collection.CompositePointCollection
All Implemented Interfaces:
FeatureCollection, PointFeatureCollection

public class CompositePointCollection
extends PointCollectionImpl

PointCollection composed of other PointCollections

Since:
May 19, 2009
Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.ft.point.PointCollectionImpl
PointCollectionImpl.PointFeatureCollectionSubset
 
Field Summary
 
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl
boundingBox, dateRange, localIterator, name, npts
 
Constructor Summary
protected CompositePointCollection(java.lang.String name, TimedCollection pointCollections)
           
 
Method Summary
 PointFeatureIterator getPointFeatureIterator(int bufferSize)
          Get an iterator over the PointFeatures of this collection
 PointFeatureCollection subset(LatLonRect boundingBox, DateRange dateRange)
          Subset this collection by boundingBox and/or dateRange
 
Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl
calcBounds, finish, getBoundingBox, getCollectionFeatureType, getDateRange, getName, hasNext, next, resetIteration, setBoundingBox, setDateRange, setSize, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositePointCollection

protected CompositePointCollection(java.lang.String name,
                                   TimedCollection pointCollections)
Method Detail

getPointFeatureIterator

public PointFeatureIterator getPointFeatureIterator(int bufferSize)
                                             throws java.io.IOException
Description copied from interface: PointFeatureCollection
Get an iterator over the PointFeatures of this collection

Parameters:
bufferSize - how many bytes can be used to buffer data, use -1 to use default.
Returns:
iterator over the PointFeatures of this collection
Throws:
java.io.IOException - on read error

subset

public PointFeatureCollection subset(LatLonRect boundingBox,
                                     DateRange dateRange)
                              throws java.io.IOException
Description copied from interface: PointFeatureCollection
Subset this collection by boundingBox and/or dateRange

Specified by:
subset in interface PointFeatureCollection
Overrides:
subset in class PointCollectionImpl
Parameters:
boundingBox - only points in this lat/lon bounding box. may be null.
dateRange - only points in this date range. may be null.
Returns:
subsetted collection, may be null if empty
Throws:
java.io.IOException - on read error