Interface CoverageAccess
- 
- All Known Subinterfaces:
- FileCoverageAccess
 - All Known Implementing Classes:
- DefaultCoverageAccess,- DefaultFileCoverageAccess,- NetCDFAccess
 
 public interface CoverageAccessRepresents a Physical storage of coverage data (that we have a connection to).Please note that this service may be remote (or otherwise slow). You are doing IO here and should treat this class with respect - please do not access these methods from a display thread. - Author:
- Simone Giannecchini, GeoSolutions, Jody Garnett
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classCoverageAccess.AccessTypeLevel of access supported.
 - 
Method SummaryAll Methods Instance Methods Abstract 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.booleancanCreate(Name name, Map<String,Serializable> params, Hints hints, ProgressListener listener)Test to see if this coverage access is suitable for creating aCoverageStorereferred by Name, with the specified set of parameters.booleancanDelete(Name name, Map<String,Serializable> params, Hints hints)Test to see if this coverage access is suitable for deleting aCoverageSourcereferred by Name, with the specified set of parameters.CoverageStorecreate(Name name, Map<String,Serializable> params, Hints hints, ProgressListener listener)Create aCoverageStorewith the specified name.booleandelete(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.Map<String,Parameter<?>>getAccessParameterInfo(CoverageAccess.AccessType accessType)Describes the required (and optional) parameters that can be used to open aCoverageSource.Map<String,Serializable>getConnectParameters()Retrieves the parameters used to connect to this live instance ofCoverageAccess.intgetCoveragesNumber(ProgressListener listener)The number of Coverages made available.DrivergetDriver()Returns theDriverwhich has been used to connect to this CoverageAccess.ServiceInfogetInfo(ProgressListener listener)Description of the CoverageAccess we are connected to here.List<Name>getNames(ProgressListener listener)Names of the available Coverages.MetadataNodegetStorageMetadata(String metadataDomain)Set<String>getStorageMetadataDomains()Set<CoverageAccess.AccessType>getSupportedAccessTypes()booleanisCreateSupported()Tells me whether or not thisCoverageAccesssupports creation of a new coverage storage.booleanisDeleteSupported()Tells me whether or not thisCoverageAccesssupports removal of an existing coverage storage.
 
- 
- 
- 
Method Detail- 
getDriverDriver getDriver() Returns theDriverwhich has been used to connect to this CoverageAccess.- Returns:
- Driverused to connect
 
 - 
getInfoServiceInfo getInfo(ProgressListener listener) Description of the CoverageAccess we are connected to here.- Returns:
- Description of the CoverageAccess we are connected to here.
 
 - 
getSupportedAccessTypesSet<CoverageAccess.AccessType> getSupportedAccessTypes() - Returns:
- the Setof supportedCoverageAccess.AccessTypes for thisCoverageAccessinstance.
 
 - 
getNamesList<Name> getNames(ProgressListener listener) Names of the available Coverages.Each Coverage named here represents a unique data product that may be accessed via the CoverageSource - Returns:
- Names of the available contents.
 
 - 
getCoveragesNumberint getCoveragesNumber(ProgressListener listener) The number of Coverages made available.- Returns:
- getNames( listener ).size()
 
 - 
getAccessParameterInfoMap<String,Parameter<?>> getAccessParameterInfo(CoverageAccess.AccessType accessType) Describes the required (and optional) parameters that can be used to open aCoverageSource.
 - 
accessCoverageSource access(Name name, Map<String,Serializable> params, CoverageAccess.AccessType accessType, Hints hints, ProgressListener listener) throws IOException Retrieve aCoverageSourceto access a Named Coverage.- Parameters:
- name- Indicate the coverage to access
- params- Additional parameters as needed to indicate what part of the data set to access
- accessType- Requested level of access
- hints- Implementation specific hints; please review the javadocs for your Driver for details
- listener- used to report progress while obtianing access
- Throws:
- IOException
 
 - 
isCreateSupportedboolean isCreateSupported() Tells me whether or not thisCoverageAccesssupports creation of a new coverage storage.This method will only return true if getSupportedAccessTypes() == READ_WRITE. - Returns:
- truewhen removal of of a new coverage storage is supported,- falseotherwise.
 
 - 
canCreateboolean canCreate(Name name, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException Test to see if this coverage access is suitable for creating aCoverageStorereferred by Name, with the specified set of parameters.This method will only return true if getSupportedAccessTypes() == READ_WRITE. - Parameters:
- name- The name of the data set to create
- params- Indicate the content to be created
- hints- Implementations specific Hints, please check the javadocs for your driver for details
- Returns:
- true if a coverage can be created
- Throws:
- IOException
 
 - 
createCoverageStore create(Name name, Map<String,Serializable> params, Hints hints, ProgressListener listener) throws IOException Create aCoverageStorewith the specified name.You can check isCreateSupported() prior to calling this method. Implementing subclasses may throw an UnsupportedOperationExceptionin case the related Driver won't allowCoverageStorecreation.- Parameters:
- name- The name of the data set to create
- params- Indicate the content to be created
- hints- Implementations specific Hints, please check the javadocs for your driver for details
- Throws:
- IllegalStateException- if getSupportedAccessTypes() == READ_ONLY
- IOException
 
 - 
isDeleteSupportedboolean isDeleteSupported() Tells me whether or not thisCoverageAccesssupports removal of an existing coverage storage.- Returns:
- truewhen removal of an existing coverage storage is supported,- falseotherwise.
 
 - 
canDeleteboolean canDelete(Name name, Map<String,Serializable> params, Hints hints) throws IOException Test to see if this coverage access is suitable for deleting aCoverageSourcereferred by Name, with the specified set of parameters.- Parameters:
- name- Name of data set to remove from
- params- Used to indicate what what of the data set to remove; if- nullindicate the entire data set should be removed
- hints- Implementation specific Hints; please consult the javadocs for the Driver you are working with.
- Throws:
- IOException
 
 - 
deleteboolean delete(Name name, Map<String,Serializable> params, Hints hints) throws IOException Asks 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. - Returns:
- truein case of success.
- Throws:
- IOException
 
 - 
getConnectParametersMap<String,Serializable> getConnectParameters() Retrieves the parameters used to connect to this live instance ofCoverageAccess.- Returns:
- the parameters used to connect to this live instance of CoverageAccess.
 
 - 
disposevoid dispose() This 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.
 - 
getStorageMetadataMetadataNode getStorageMetadata(String metadataDomain) 
 
- 
 
-