Package org.geotools.coverage.io.netcdf
Class NetCDFAccess
Object
DefaultCoverageAccess
DefaultFileCoverageAccess
NetCDFAccess
- All Implemented Interfaces:
FileSetManager
,CoverageAccess
,FileCoverageAccess
public class NetCDFAccess
extends DefaultFileCoverageAccess
implements CoverageAccess, FileSetManager
CoverageAccess
implementation for NetCDF Data format.- Author:
- Romagnoli Daniele, GeoSolutions SAS
-
Nested Class Summary
Nested classes/interfaces inherited from interface CoverageAccess
CoverageAccess.AccessType
-
Field Summary
Fields inherited from class DefaultFileCoverageAccess
source
Fields inherited from class DefaultCoverageAccess
accessParameters, allowedAccessTypes, connectionParameters, driver, names
-
Method Summary
Modifier and TypeMethodDescriptionaccess
(Name name, Map<String, Serializable> params, CoverageAccess.AccessType accessType, Hints hints, ProgressListener listener) Retrieve aCoverageSource
to access a Named Coverage.void
Add a file to the file set managerboolean
Asks thisCoverageAccess
to entirely remove a certain Coverage from the availableCoverageSource
s.void
dispose()
This will free any cached info object or header information.protected void
finalize()
getInfo
(ProgressListener listener) Description of the CoverageAccess we are connected to here.list()
Return the list of all the files currently added to the managervoid
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)Methods inherited from class DefaultFileCoverageAccess
getFileSet
Methods inherited from class DefaultCoverageAccess
canCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupported
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface CoverageAccess
canCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupported
-
Method Details
-
delete
Description copied from interface:CoverageAccess
Asks thisCoverageAccess
to entirely remove a certain Coverage from the availableCoverageSource
s.Many file based formats won't allow to perform such operation, but db based source should be quite happy with it.
- Specified by:
delete
in interfaceCoverageAccess
- Overrides:
delete
in classDefaultCoverageAccess
- Returns:
true
in case of success.- Throws:
IOException
-
access
public CoverageSource access(Name name, Map<String, Serializable> params, CoverageAccess.AccessType accessType, Hints hints, ProgressListener listener) throws IOExceptionDescription copied from interface:CoverageAccess
Retrieve aCoverageSource
to access a Named Coverage.- Specified by:
access
in interfaceCoverageAccess
- Overrides:
access
in classDefaultCoverageAccess
- Parameters:
name
- Indicate the coverage to accessparams
- Additional parameters as needed to indicate what part of the data set to accessaccessType
- Requested level of accesshints
- Implementation specific hints; please review the javadocs for your Driver for detailslistener
- used to report progress while obtianing access- Throws:
IOException
-
getInfo
Description copied from interface:CoverageAccess
Description of the CoverageAccess we are connected to here.- Specified by:
getInfo
in interfaceCoverageAccess
- Overrides:
getInfo
in classDefaultCoverageAccess
- Returns:
- Description of the CoverageAccess we are connected to here.
-
dispose
public void dispose()Description copied from interface:CoverageAccess
This will free any cached info object or header information.Often 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.- Specified by:
dispose
in interfaceCoverageAccess
- Overrides:
dispose
in classDefaultCoverageAccess
-
finalize
-
addFile
Description copied from interface:FileSetManager
Add a file to the file set manager- Specified by:
addFile
in interfaceFileSetManager
-
list
Description copied from interface:FileSetManager
Return the list of all the files currently added to the manager- Specified by:
list
in interfaceFileSetManager
-
removeFile
Description copied from interface:FileSetManager
Remove a file from the manager (An implementation may also physically remove the file)- Specified by:
removeFile
in interfaceFileSetManager
-
purge
public void purge()Description copied from interface:FileSetManager
Remove all the files from the manager (An implementation may also physically remove all the files)- Specified by:
purge
in interfaceFileSetManager
-