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
CoverageAccessimplementation 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoverageSourceaccess(Name name, Map<String,Serializable> params, CoverageAccess.AccessType accessType, Hints hints, ProgressListener listener)Retrieve aCoverageSourceto access a Named Coverage.voidaddFile(String filePath)Add a file to the file set managerbooleandelete(Name name, Map<String,Serializable> params, Hints hints)Asks thisCoverageAccessto entirely remove a certain Coverage from the availableCoverageSources.voiddispose()This will free any cached info object or header information.protected voidfinalize()ServiceInfogetInfo(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 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
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 Detail
-
delete
public boolean delete(Name name, Map<String,Serializable> params, Hints hints) throws IOException
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 IOException
Description 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
public ServiceInfo getInfo(ProgressListener listener)
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
protected void finalize() throws Throwable
-
addFile
public void addFile(String filePath)
Description copied from interface:FileSetManagerAdd a file to the file set manager- Specified by:
addFilein interfaceFileSetManager
-
list
public List<String> list()
Description copied from interface:FileSetManagerReturn the list of all the files currently added to the manager- Specified by:
listin interfaceFileSetManager
-
removeFile
public void removeFile(String filePath)
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
-
-