Package ucar.nc2.ft.point
Class DsgCollectionImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- All Implemented Interfaces:
DsgFeatureCollection
- Direct Known Subclasses:
PointCollectionImpl,PointFeatureCCCImpl,PointFeatureCCImpl
public abstract class DsgCollectionImpl extends Object implements DsgFeatureCollection
Common methods for DsgFeatureCollection.- Since:
- 9/25/2015.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDsgCollectionImpl(String name, List<CoordinateAxis> coordVars)protectedDsgCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAltName()The altitude name string if it exists.StringgetAltUnits()The altitude unit string if it exists.LatLonRectgetBoundingBox()The boundingBox for the FeatureCollection.CalendarDateRangegetCalendarDateRange()Calendar date range for the FeatureCollection.List<CoordinateAxis>getCoordinateVariables()The list of coordinate variables in the collectionList<Variable>getExtraVariables()CollectionInfogetInfo()StringgetName()Get the name of this feature collection.intgetNobs()StringgetTimeName()The name of time unit, if there is a time axis.CalendarDateUnitgetTimeUnit()The time unit, if there is a time axis.intsize()The number of Features in the collection.-
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
getCollectionFeatureType
-
-
-
-
Field Detail
-
name
protected String name
-
timeName
protected String timeName
-
timeUnit
protected CalendarDateUnit timeUnit
-
altName
protected String altName
-
altUnits
protected String altUnits
-
info
protected CollectionInfo info
-
coordVars
protected List<CoordinateAxis> coordVars
-
-
Constructor Detail
-
DsgCollectionImpl
protected DsgCollectionImpl(String name, CalendarDateUnit timeUnit, String altUnits)
-
DsgCollectionImpl
protected DsgCollectionImpl(String name, List<CoordinateAxis> coordVars)
-
-
Method Detail
-
getName
@Nonnull public String getName()
Description copied from interface:DsgFeatureCollectionGet the name of this feature collection.- Specified by:
getNamein interfaceDsgFeatureCollection- Returns:
- the name of this feature collection
-
getTimeName
@Nullable public String getTimeName()
Description copied from interface:DsgFeatureCollectionThe name of time unit, if there is a time axis.- Specified by:
getTimeNamein interfaceDsgFeatureCollection- Returns:
- name of time unit string, may be null
-
getTimeUnit
@Nullable public CalendarDateUnit getTimeUnit()
Description copied from interface:DsgFeatureCollectionThe time unit, if there is a time axis.- Specified by:
getTimeUnitin interfaceDsgFeatureCollection- Returns:
- time unit, may be null
-
getAltName
@Nullable public String getAltName()
Description copied from interface:DsgFeatureCollectionThe altitude name string if it exists.- Specified by:
getAltNamein interfaceDsgFeatureCollection- Returns:
- altitude name string, may be null
-
getAltUnits
@Nullable public String getAltUnits()
Description copied from interface:DsgFeatureCollectionThe altitude unit string if it exists.- Specified by:
getAltUnitsin interfaceDsgFeatureCollection- Returns:
- altitude unit string, may be null
-
getCoordinateVariables
@Nonnull public List<CoordinateAxis> getCoordinateVariables()
Description copied from interface:DsgFeatureCollectionThe list of coordinate variables in the collection- Specified by:
getCoordinateVariablesin interfaceDsgFeatureCollection- Returns:
- the list of coordinate variables, may be empty but not null;
-
getExtraVariables
@Nonnull public List<Variable> getExtraVariables()
- Specified by:
getExtraVariablesin interfaceDsgFeatureCollection
-
size
public int size()
Description copied from interface:DsgFeatureCollectionThe number of Features in the collection. May not be known until after iterating through the collection.- Specified by:
sizein interfaceDsgFeatureCollection- Returns:
- number of elements in the collection, or -1 if not known.
-
getNobs
public int getNobs()
-
getCalendarDateRange
@Nullable public CalendarDateRange getCalendarDateRange()
Description copied from interface:DsgFeatureCollectionCalendar date range for the FeatureCollection. May not be known until after iterating through the collection.- Specified by:
getCalendarDateRangein interfaceDsgFeatureCollection- Returns:
- the calendar date range for the entire collection, or null if unknown
-
getBoundingBox
@Nullable public LatLonRect getBoundingBox()
Description copied from interface:DsgFeatureCollectionThe boundingBox for the FeatureCollection. May not be known until after iterating through the collection.- Specified by:
getBoundingBoxin interfaceDsgFeatureCollection- Returns:
- the lat/lon boundingBox for the entire collection, or null if unknown.
-
getInfo
@Nonnull public CollectionInfo getInfo()
-
-