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
sourceFields 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 aCoverageSourceto access a Named Coverage.voidAdd a file to the file set managerbooleanAsks thisCoverageAccessto entirely remove a certain Coverage from the availableCoverageSources.voiddispose()This will free any cached info object or header information.protected voidfinalize()getInfo(ProgressListener listener) Description of the CoverageAccess we are connected to here.list()Return the list of all the files currently added to the managervoidpurge()Remove all the files from the manager (An implementation may also physically remove all the files)voidremoveFile(String filePath) Remove a file from the manager (An implementation may also physically remove the file)Methods inherited from class DefaultFileCoverageAccess
getFileSetMethods inherited from class DefaultCoverageAccess
canCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupportedMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CoverageAccess
canCreate, canDelete, create, getAccessParameterInfo, getConnectParameters, getCoveragesNumber, getDriver, getNames, getStorageMetadata, getStorageMetadataDomains, getSupportedAccessTypes, isCreateSupported, isDeleteSupported
-
Method Details
-
delete
Description copied from interface:CoverageAccessAsks thisCoverageAccessto entirely remove a certain Coverage from the availableCoverageSources.Many file based formats won't allow to perform such operation, but db based source should be quite happy with it.
- Specified by:
deletein interfaceCoverageAccess- Overrides:
deletein classDefaultCoverageAccess- Returns:
truein 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:CoverageAccessRetrieve aCoverageSourceto access a Named Coverage.- Specified by:
accessin interfaceCoverageAccess- Overrides:
accessin 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:CoverageAccessDescription of the CoverageAccess we are connected to here.- Specified by:
getInfoin interfaceCoverageAccess- Overrides:
getInfoin classDefaultCoverageAccess- Returns:
- Description of the CoverageAccess we are connected to here.
-
dispose
public void dispose()Description copied from interface:CoverageAccessThis will free any cached info object or header information.Often a
CoverageAccesswill keep a file channel open, this will clean that sort of thing up.Once a
CoverageAccesshas been disposed it can be seen as being in unspecified state, hence calling a method on it may have unpredictable results.- Specified by:
disposein interfaceCoverageAccess- Overrides:
disposein classDefaultCoverageAccess
-
finalize
-
addFile
Description copied from interface:FileSetManagerAdd a file to the file set manager- Specified by:
addFilein interfaceFileSetManager
-
list
Description copied from interface:FileSetManagerReturn the list of all the files currently added to the manager- Specified by:
listin interfaceFileSetManager
-
removeFile
Description copied from interface:FileSetManagerRemove a file from the manager (An implementation may also physically remove the file)- Specified by:
removeFilein interfaceFileSetManager
-
purge
public void purge()Description copied from interface:FileSetManagerRemove all the files from the manager (An implementation may also physically remove all the files)- Specified by:
purgein interfaceFileSetManager
-