public class NetCDFAccess extends DefaultFileCoverageAccess implements CoverageAccess, FileSetManager
CoverageAccess implementation for NetCDF Data format.CoverageAccess.AccessTypesourceaccessParameters, allowedAccessTypes, connectionParameters, driver, names| Modifier and Type | Method and Description |
|---|---|
CoverageSource |
access(Name name,
Map<String,Serializable> params,
CoverageAccess.AccessType accessType,
Hints hints,
ProgressListener listener)
Retrieve a
CoverageSource to access a Named Coverage. |
void |
addFile(String filePath)
Add a file to the file set manager
|
boolean |
delete(Name name,
Map<String,Serializable> params,
Hints hints)
Asks this
CoverageAccess to entirely remove a certain Coverage from the available
CoverageSources. |
void |
dispose()
This will free any cached info object or header information.
|
protected void |
finalize() |
ServiceInfo |
getInfo(ProgressListener listener)
Description of the CoverageAccess we are connected to here.
|
List<String> |
list()
Return the list of all the files currently added to the manager
|
void |
purge()
Remove all the files from the manager (An implementation may also physically remove all the
files)
|
void |
removeFile(String filePath)
Remove a file from the manager (An implementation may also physically remove the file)
|
getFileSetcanCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupportedclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupportedpublic boolean delete(Name name, Map<String,Serializable> params, Hints hints) throws IOException
CoverageAccessCoverageAccess to entirely remove a certain Coverage from the available
CoverageSources.
Many file based formats won't allow to perform such operation, but db based source should be quite happy with it.
delete in interface CoverageAccessdelete in class DefaultCoverageAccesstrue in case of success.IOExceptionpublic CoverageSource access(Name name, Map<String,Serializable> params, CoverageAccess.AccessType accessType, Hints hints, ProgressListener listener) throws IOException
CoverageAccessCoverageSource to access a Named Coverage.
access in interface CoverageAccessaccess in class DefaultCoverageAccessparams - Additional parameters as needed to indicate what part of the data set to accessaccessType - Requested level of accesslistener - used to report progress while obtianing accessIOExceptionpublic ServiceInfo getInfo(ProgressListener listener)
CoverageAccessgetInfo in interface CoverageAccessgetInfo in class DefaultCoverageAccesspublic void dispose()
CoverageAccessOften a CoverageAccess will keep a file channel open, this will clean that sort of
thing up.
Once a CoverageAccess has been disposed it can be seen as being in unspecified
state, hence calling a method on it may have unpredictable results.
dispose in interface CoverageAccessdispose in class DefaultCoverageAccessprotected void finalize()
throws Throwable
public void addFile(String filePath)
FileSetManageraddFile in interface FileSetManagerpublic List<String> list()
FileSetManagerlist in interface FileSetManagerpublic void removeFile(String filePath)
FileSetManagerremoveFile in interface FileSetManagerpublic void purge()
FileSetManagerpurge in interface FileSetManagerCopyright © 1996–2019 Geotools. All rights reserved.