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, UpdateableCollection, PointFeatureCollection

public class CompositePointCollection
extends PointCollectionImpl
implements UpdateableCollection

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.PointCollectionSubset
 
Field Summary
protected  List<VariableSimpleIF> dataVariables
           
 
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl
boundingBox, dateRange, localIterator, name, npts
 
Constructor Summary
protected CompositePointCollection(String name, TimedCollection pointCollections)
           
 
Method Summary
 List<VariableSimpleIF> getDataVariables()
           
 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
 void update()
           
 
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
 

Field Detail

dataVariables

protected List<VariableSimpleIF> dataVariables
Constructor Detail

CompositePointCollection

protected CompositePointCollection(String name,
                                   TimedCollection pointCollections)
                            throws IOException
Throws:
IOException
Method Detail

getDataVariables

public List<VariableSimpleIF> getDataVariables()

subset

public PointFeatureCollection subset(LatLonRect boundingBox,
                                     DateRange dateRange)
                              throws 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:
IOException - on read error

getPointFeatureIterator

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

Specified by:
getPointFeatureIterator in interface PointFeatureCollection
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:
IOException - on read error

update

public void update()
Specified by:
update in interface UpdateableCollection


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.