public abstract class MultipleNestedPointCollectionImpl extends java.lang.Object implements NestedPointFeatureCollection
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
altUnits |
protected FeatureType |
collectionFeatureType |
protected java.util.List<Variable> |
extras |
protected java.lang.String |
name |
protected int |
npts |
protected DateUnit |
timeUnit |
Modifier | Constructor and Description |
---|---|
protected |
MultipleNestedPointCollectionImpl(java.lang.String name,
DateUnit timeUnit,
java.lang.String altUnits,
FeatureType collectionFeatureType) |
Modifier and Type | Method and Description |
---|---|
PointFeatureCollection |
flatten(LatLonRect boundingBox,
CalendarDateRange dateRange)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
PointFeatureCollection |
flatten(LatLonRect boundingBox,
DateRange dateRange) |
java.lang.String |
getAltUnits()
The altitude unit string if it exists.
|
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type
|
java.util.List<Variable> |
getExtraVariables()
Other variables needed for co,pleteness, eg joined coordinate variables
|
java.lang.String |
getName()
Get the name of this feature collection.
|
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of PointFeatureCollection.
|
DateUnit |
getTimeUnit()
The udunit time unit string.
|
boolean |
isMultipleNested()
If true, use getNestedPointFeatureCollectionIterator, otherwise use getPointFeatureCollectionIterator.
|
protected void |
setSize(int npts) |
int |
size()
The number of elements in the collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNestedPointFeatureCollectionIterator, subset
protected java.lang.String name
protected DateUnit timeUnit
protected java.lang.String altUnits
protected FeatureType collectionFeatureType
protected int npts
protected java.util.List<Variable> extras
protected MultipleNestedPointCollectionImpl(java.lang.String name, DateUnit timeUnit, java.lang.String altUnits, FeatureType collectionFeatureType)
public java.lang.String getName()
FeatureCollection
getName
in interface FeatureCollection
public DateUnit getTimeUnit()
NestedPointFeatureCollection
getTimeUnit
in interface NestedPointFeatureCollection
public java.lang.String getAltUnits()
NestedPointFeatureCollection
getAltUnits
in interface NestedPointFeatureCollection
public java.util.List<Variable> getExtraVariables()
NestedPointFeatureCollection
getExtraVariables
in interface NestedPointFeatureCollection
public int size()
NestedPointFeatureCollection
size
in interface NestedPointFeatureCollection
protected void setSize(int npts)
public boolean isMultipleNested()
NestedPointFeatureCollection
isMultipleNested
in interface NestedPointFeatureCollection
public FeatureType getCollectionFeatureType()
FeatureCollection
getCollectionFeatureType
in interface FeatureCollection
public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws java.io.IOException
NestedPointFeatureCollection
getPointFeatureCollectionIterator
in interface NestedPointFeatureCollection
bufferSize
- how many bytes can be used to buffer data, use -1 to use default.java.io.IOException
- on read errorpublic PointFeatureCollection flatten(LatLonRect boundingBox, CalendarDateRange dateRange) throws java.io.IOException
NestedPointFeatureCollection
flatten
in interface NestedPointFeatureCollection
boundingBox
- only points in this lat/lon bounding box. may be null.dateRange
- only points in this date range. may be null.java.io.IOException
- on read errorpublic PointFeatureCollection flatten(LatLonRect boundingBox, DateRange dateRange) throws java.io.IOException
flatten
in interface NestedPointFeatureCollection
java.io.IOException