public abstract class FeatureDatasetImpl extends Object implements FeatureDataset
Modifier and Type | Field and Description |
---|---|
protected LatLonRect |
boundingBox |
protected List<VariableSimpleIF> |
dataVariables |
protected CalendarDateRange |
dateRange |
protected String |
desc |
protected FileCache |
fileCache |
protected String |
location |
protected NetcdfDataset |
ncfile |
protected Formatter |
parseInfo |
protected String |
title |
Modifier | Constructor and Description |
---|---|
|
FeatureDatasetImpl()
No-arg constuctor
|
protected |
FeatureDatasetImpl(FeatureDatasetImpl from) |
|
FeatureDatasetImpl(NetcdfDataset ncfile)
Constructor when theres a NetcdfFile underneath
|
|
FeatureDatasetImpl(String title,
String description,
String location)
Constructor when theres no NetcdfFile underneath.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close all resources associated with this dataset.
|
Attribute |
findGlobalAttributeIgnoreCase(String name)
Return the global attribute with the given name, ignoring case.
|
LatLonRect |
getBoundingBox()
The boundingBox for the entire dataset.
|
CalendarDate |
getCalendarDateEnd()
Ending Calendar date for the entire dataset.
|
CalendarDateRange |
getCalendarDateRange()
Calendar Date range for the entire dataset.
|
CalendarDate |
getCalendarDateStart()
Starting Calendar date for the entire dataset.
|
VariableSimpleIF |
getDataVariable(String shortName)
Get the named data Variable.
|
List<VariableSimpleIF> |
getDataVariables()
The data Variables available in this dataset.
|
DateRange |
getDateRange()
Date range for the entire dataset.
|
String |
getDescription()
Text information about this dataset.
|
void |
getDetailInfo(Formatter sf)
Show debug / underlying implementation details
|
Date |
getEndDate()
Ending date for the entire dataset.
|
List<Attribute> |
getGlobalAttributes()
List of global attributes.
|
String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Get last modified date of underlying file.
|
String |
getLocation()
The URI location of the dataset
|
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
Date |
getStartDate()
Starting date for the entire dataset.
|
String |
getTitle()
Title of the dataset.
|
protected void |
setBoundingBox(LatLonRect boundingBox) |
protected void |
setDateRange(CalendarDateRange dateRange) |
protected void |
setDescription(String desc) |
void |
setFileCache(FileCache fileCache)
If the FileCache is set, the FileCacheable object must store it and call FileCache.release() on FileCacheable.close():
|
protected void |
setLocationURI(String location) |
protected void |
setTitle(String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calcBounds, getFeatureType
protected NetcdfDataset ncfile
protected String title
protected String desc
protected String location
protected List<VariableSimpleIF> dataVariables
protected Formatter parseInfo
protected CalendarDateRange dateRange
protected LatLonRect boundingBox
protected FileCache fileCache
protected FeatureDatasetImpl(FeatureDatasetImpl from)
public FeatureDatasetImpl()
public FeatureDatasetImpl(String title, String description, String location)
title
- title of the dataset.description
- description of the dataset.location
- URI of the datasetpublic FeatureDatasetImpl(NetcdfDataset ncfile)
ncfile
- adapt this NetcdfDatasetprotected void setTitle(String title)
protected void setDescription(String desc)
protected void setLocationURI(String location)
protected void setDateRange(CalendarDateRange dateRange)
protected void setBoundingBox(LatLonRect boundingBox)
public NetcdfFile getNetcdfFile()
FeatureDataset
getNetcdfFile
in interface FeatureDataset
public String getTitle()
FeatureDataset
getTitle
in interface FeatureDataset
public String getDescription()
FeatureDataset
getDescription
in interface FeatureDataset
public String getLocation()
FeatureDataset
getLocation
in interface FeatureDataset
getLocation
in interface FileCacheable
public List<Attribute> getGlobalAttributes()
FeatureDataset
getGlobalAttributes
in interface FeatureDataset
public Attribute findGlobalAttributeIgnoreCase(String name)
FeatureDataset
findGlobalAttributeIgnoreCase
in interface FeatureDataset
name
- attribute namepublic void getDetailInfo(Formatter sf)
FeatureDataset
getDetailInfo
in interface FeatureDataset
sf
- append info herepublic CalendarDateRange getCalendarDateRange()
FeatureDataset
getCalendarDateRange
in interface FeatureDataset
public CalendarDate getCalendarDateStart()
FeatureDataset
getCalendarDateStart
in interface FeatureDataset
public CalendarDate getCalendarDateEnd()
FeatureDataset
getCalendarDateEnd
in interface FeatureDataset
public DateRange getDateRange()
FeatureDataset
getDateRange
in interface FeatureDataset
public Date getStartDate()
FeatureDataset
getStartDate
in interface FeatureDataset
public Date getEndDate()
FeatureDataset
getEndDate
in interface FeatureDataset
public LatLonRect getBoundingBox()
FeatureDataset
getBoundingBox
in interface FeatureDataset
public List<VariableSimpleIF> getDataVariables()
FeatureDataset
getDataVariables
in interface FeatureDataset
public VariableSimpleIF getDataVariable(String shortName)
FeatureDataset
getDataVariable
in interface FeatureDataset
shortName
- of data Variable.public String getImplementationName()
FeatureDataset
getImplementationName
in interface FeatureDataset
public void close() throws IOException
FeatureDataset
close
in interface FeatureDataset
close
in interface FileCacheable
IOException
- on io errorpublic long getLastModified()
FileCacheable
getLastModified
in interface FileCacheable
public void setFileCache(FileCache fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException { if (cache != null) { cache.release(this); } else { reallyClose(); }
setFileCache
in interface FileCacheable
fileCache
- must store this, use it on close as above.Copyright © 1999–2013 UCAR/Unidata. All rights reserved.