public class SimpleGeometryFeatureDataset extends Object implements FeatureDataset
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleGeometryFeatureDataset.SimpleGeometryCovSet
This is a set of GeoGrids with the same GeoCoordSys.
|
| Constructor and Description |
|---|
SimpleGeometryFeatureDataset(NetcdfDataset ncd)
Create a SimpleGeometryFeatureDataset from a NetcdfDataset.
|
| 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 lat/lon 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.
|
String |
getDescription()
Text information about this dataset.
|
void |
getDetailInfo(Formatter sf)
Show debug / underlying implementation details
|
FeatureType |
getFeatureType()
Contains collections of this FeatureType.
|
List<Attribute> |
getGlobalAttributes()
List of global attributes.
|
String |
getImplementationName()
Show who is implementing
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
String |
getLocation()
The URI location of the dataset
|
String |
getName()
the name of the dataset is the last part of the location
|
NetcdfDataset |
getNetcdfDataset() |
NetcdfFile |
getNetcdfFile()
Return underlying NetcdfFile, or null if none.
|
String |
getTitle()
Title of the dataset.
|
static SimpleGeometryFeatureDataset |
open(String location)
Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems
and turn into a SimpleGeometryFeatureDataset.
|
static SimpleGeometryFeatureDataset |
open(String location,
Set<NetcdfDataset.Enhance> enhanceMode)
Open a netcdf dataset, using NetcdfDataset.defaultEnhanceMode plus CoordSystems
and turn into a SimpleGeometryFeatureDataset.
|
void |
reacquire()
Reacquire any resources like file handles
Used when reactivating in cache.
|
void |
release()
Release any system resources like file handles.
|
void |
setFileCache(FileCacheIF fileCache)
If the FileCache is not null, FileCacheable.close() must call FileCache.release()
|
public SimpleGeometryFeatureDataset(NetcdfDataset ncd) throws IOException
ncd - underlying NetcdfDataset, will do Enhance.CoordSystems if not already done.IOException - on read errorpublic static SimpleGeometryFeatureDataset open(String location) throws IOException
location - netcdf dataset to open, using NetcdfDataset.acquireDataset().IOException - on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)public static SimpleGeometryFeatureDataset open(String location, Set<NetcdfDataset.Enhance> enhanceMode) throws IOException
location - netcdf dataset to open, using NetcdfDataset.acquireDataset().enhanceMode - open netcdf dataset with this enhanceModeIOException - on read errorNetcdfDataset.acquireDataset(ucar.nc2.dataset.DatasetUrl, ucar.nc2.util.CancelTask)public String getTitle()
FeatureDatasetgetTitle in interface FeatureDatasetpublic String getDescription()
FeatureDatasetgetDescription in interface FeatureDatasetpublic String getLocation()
FeatureDatasetgetLocation in interface FeatureDatasetgetLocation in interface FileCacheablepublic CalendarDateRange getCalendarDateRange()
FeatureDatasetgetCalendarDateRange in interface FeatureDatasetpublic CalendarDate getCalendarDateStart()
FeatureDatasetgetCalendarDateStart in interface FeatureDatasetpublic CalendarDate getCalendarDateEnd()
FeatureDatasetgetCalendarDateEnd in interface FeatureDatasetpublic LatLonRect getBoundingBox()
FeatureDatasetgetBoundingBox in interface FeatureDatasetpublic List<Attribute> getGlobalAttributes()
FeatureDatasetgetGlobalAttributes in interface FeatureDatasetpublic Attribute findGlobalAttributeIgnoreCase(String name)
FeatureDatasetfindGlobalAttributeIgnoreCase in interface FeatureDatasetname - attribute namepublic List<VariableSimpleIF> getDataVariables()
FeatureDatasetgetDataVariables in interface FeatureDatasetpublic VariableSimpleIF getDataVariable(String shortName)
FeatureDatasetgetDataVariable in interface FeatureDatasetshortName - of data Variable.public NetcdfFile getNetcdfFile()
FeatureDatasetgetNetcdfFile in interface FeatureDatasetpublic void close()
throws IOException
FeatureDatasetclose in interface Closeableclose in interface AutoCloseableclose in interface FeatureDatasetclose in interface FileCacheableIOException - on io errorpublic long getLastModified()
FileCacheableFileFactory.getLastModified in interface FileCacheablelong value representing the time the file(s) were last modified or 0L if the
last-modified time couldn't be determined for any reason.public void setFileCache(FileCacheIF fileCache)
FileCacheable
public synchronized void close() throws java.io.IOException {
if (cache != null) {
if (cache.release(this))
return;
}
reallyClose();
}
setFileCache in interface FileCacheablefileCache - must store this, use it on close as above.public void getDetailInfo(Formatter sf)
FeatureDatasetgetDetailInfo in interface FeatureDatasetsf - append info herepublic String getName()
public NetcdfDataset getNetcdfDataset()
public FeatureType getFeatureType()
FeatureDatasetgetFeatureType in interface FeatureDatasetpublic String getImplementationName()
FeatureDatasetgetImplementationName in interface FeatureDatasetpublic void release()
throws IOException
FileCacheablerelease in interface FileCacheableIOExceptionpublic void reacquire()
throws IOException
FileCacheablereacquire in interface FileCacheableIOException