ucar.nc2.ft.point
Class PointDatasetImpl

java.lang.Object
  extended by ucar.nc2.ft.FeatureDatasetImpl
      extended by ucar.nc2.ft.point.PointDatasetImpl
All Implemented Interfaces:
FeatureDataset, FeatureDatasetPoint, FileCacheable
Direct Known Subclasses:
PointDatasetRemote

public class PointDatasetImpl
extends FeatureDatasetImpl
implements FeatureDatasetPoint

Implementation of PointFeatureDataset. All of the specialization is in List collectionList.

Since:
Feb 29, 2008
Author:
caron

Field Summary
protected  List<FeatureCollection> collectionList
           
protected  FeatureType featureType
           
 
Fields inherited from class ucar.nc2.ft.FeatureDatasetImpl
boundingBox, dataVariables, dateRange, desc, fileCache, location, ncfile, parseInfo, title
 
Constructor Summary
protected PointDatasetImpl(FeatureType featureType)
           
  PointDatasetImpl(NetcdfDataset ds, FeatureType featureType)
           
protected PointDatasetImpl(PointDatasetImpl from, LatLonRect filter_bb, DateRange filter_date)
           
 
Method Summary
 void calcBounds()
          Caclulate date range and bounding box, even if the data has to be scanned.
 void getDetailInfo(Formatter sf)
          Show debug / underlying implementation details
 FeatureType getFeatureType()
          Contains collections of this FeatureType.
 List<FeatureCollection> getPointFeatureCollectionList()
          Get a list of FeatureCollections contained in this dataset.
protected  void setFeatureType(FeatureType ftype)
           
protected  void setPointFeatureCollection(FeatureCollection collection)
           
protected  void setPointFeatureCollection(List<FeatureCollection> collectionList)
           
 
Methods inherited from class ucar.nc2.ft.FeatureDatasetImpl
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDateRange, getDescription, getEndDate, getGlobalAttributes, getImplementationName, getLocation, getNetcdfFile, getStartDate, getTitle, setBoundingBox, setDateRange, setDescription, setFileCache, setLocationURI, setTitle, sync
 
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.FeatureDataset
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDateRange, getDescription, getEndDate, getGlobalAttributes, getImplementationName, getLocation, getNetcdfFile, getStartDate, getTitle
 
Methods inherited from interface ucar.nc2.util.cache.FileCacheable
setFileCache, sync
 

Field Detail

collectionList

protected List<FeatureCollection> collectionList

featureType

protected FeatureType featureType
Constructor Detail

PointDatasetImpl

protected PointDatasetImpl(FeatureType featureType)

PointDatasetImpl

protected PointDatasetImpl(PointDatasetImpl from,
                           LatLonRect filter_bb,
                           DateRange filter_date)

PointDatasetImpl

public PointDatasetImpl(NetcdfDataset ds,
                        FeatureType featureType)
Method Detail

setPointFeatureCollection

protected void setPointFeatureCollection(List<FeatureCollection> collectionList)

setPointFeatureCollection

protected void setPointFeatureCollection(FeatureCollection collection)

getFeatureType

public FeatureType getFeatureType()
Description copied from interface: FeatureDataset
Contains collections of this FeatureType.

Specified by:
getFeatureType in interface FeatureDataset
Returns:
FeatureType of data

setFeatureType

protected void setFeatureType(FeatureType ftype)

getPointFeatureCollectionList

public List<FeatureCollection> getPointFeatureCollectionList()
Description copied from interface: FeatureDatasetPoint
Get a list of FeatureCollections contained in this dataset. These will all be of type PointFeatureCollection or NestedPointFeatureCollection.

Specified by:
getPointFeatureCollectionList in interface FeatureDatasetPoint
Returns:
list of FeatureCollections contained in this dataset

calcBounds

public void calcBounds()
                throws IOException
Description copied from interface: FeatureDataset
Caclulate date range and bounding box, even if the data has to be scanned. This ensures that getDateRange() and getBoundingBox() return non-null. If the collection already knows its date range and bounding box, then this has no effect.

Specified by:
calcBounds in interface FeatureDataset
Throws:
IOException - or read error.

getDetailInfo

public void getDetailInfo(Formatter sf)
Description copied from interface: FeatureDataset
Show debug / underlying implementation details

Specified by:
getDetailInfo in interface FeatureDataset
Overrides:
getDetailInfo in class FeatureDatasetImpl
Parameters:
sf - append info here


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