Package ucar.nc2.ft.point.collection
Class CompositePointCollection
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointCollectionImpl
-
- ucar.nc2.ft.point.collection.CompositePointCollection
-
- All Implemented Interfaces:
Iterable<PointFeature>
,DsgFeatureCollection
,UpdateableCollection
,PointFeatureCollection
public class CompositePointCollection extends PointCollectionImpl implements UpdateableCollection
PointCollection composed of other PointCollections- Since:
- May 19, 2009
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.ft.point.PointCollectionImpl
PointCollectionImpl.PointCollectionSubset
-
-
Field Summary
Fields Modifier and Type Field Description protected List<VariableSimpleIF>
dataVariables
protected AttributeContainer
globalAttributes
-
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl
localIterator
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CompositePointCollection(String name, CalendarDateUnit timeUnit, String altUnits, TimedCollection pointCollections)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeContainer
attributes()
List<VariableSimpleIF>
getDataVariables()
List<Attribute>
getGlobalAttributes()
Deprecated.use attributes()PointFeatureIterator
getPointFeatureIterator()
Get an iterator over the PointFeatures of this collection.PointFeatureCollection
subset(LatLonRect boundingBox, CalendarDateRange dateRange)
Subset this collection by boundingBox and/or dateRangeCalendarDateRange
update()
-
Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl
finish, getCollectionFeatureType, hasNext, iterator, next, resetIteration
-
Methods inherited from class ucar.nc2.ft.point.DsgCollectionImpl
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.ft.DsgFeatureCollection
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
dataVariables
protected List<VariableSimpleIF> dataVariables
-
globalAttributes
protected AttributeContainer globalAttributes
-
-
Constructor Detail
-
CompositePointCollection
protected CompositePointCollection(String name, CalendarDateUnit timeUnit, String altUnits, TimedCollection pointCollections)
-
-
Method Detail
-
getDataVariables
public List<VariableSimpleIF> getDataVariables()
-
attributes
public AttributeContainer attributes()
-
getGlobalAttributes
@Deprecated public List<Attribute> getGlobalAttributes()
Deprecated.use attributes()
-
subset
@Nonnull public PointFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
Description copied from interface:PointFeatureCollection
Subset this collection by boundingBox and/or dateRange- Specified by:
subset
in interfacePointFeatureCollection
- Overrides:
subset
in classPointCollectionImpl
- 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
-
getPointFeatureIterator
public PointFeatureIterator getPointFeatureIterator()
Description copied from interface:PointFeatureCollection
Get an iterator over the PointFeatures of this collection. call PointFeatureIterator.finish() when done- Specified by:
getPointFeatureIterator
in interfacePointFeatureCollection
- Returns:
- iterator over the PointFeatures of this collection
-
update
public CalendarDateRange update() throws IOException
- Specified by:
update
in interfaceUpdateableCollection
- Throws:
IOException
-
-