Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »



This proposal aims on adding the capability to do a cleanup/delete of a coverageStore/GridCoverageReader.
Some readers/stores like the imageMosaic one, deal with a set of ancillary files and create a set of new files as well when configured.
Right now there is no way to fully purge a store/reader. The user have to manually delete all the granules, the auxiliary files as well as to remove the records from the database/feature store if any (as in the imageMosaic case).
A delete method will allow to do all these cleanup through a simple method invokation. The Reader, which is the only one which has full knowledge of the data structure, will do that cleanup operation by also potentially delegating some jobs to the underlying readers
As an instance, an ImageMosaic made of NetCDFs, will delegate some cleanup to the underlying NetCDF readers (which implements the StructuredGridCoverage2DReader too) to delete hidden files and purge quick access DBs.

Implementation changes

The updated StructuredGridCoverage2Dreader will define a new delete method to cleanup everything associated to the reader. Moreover, the removeCoverage method will be updated by adding a delete parameter to specify whether the coverage Removal should also take care of deleting the referred files. Finally, a new FileSetManager interface will be defined in order to take note of sidecar/auxiliary files, remove or purge them. Specific FileSystem related implementation will also phisically remove or purge files from disk.


This proposal is under construction.

Voting has not started yet:


This section is used to make sure your proposal is complete (did you remember documentation?) and has enough paid or volunteer time lined up to be a success


no progress






lack mandate/funds/time


volunteer needed

  1. API changed based on BEFORE / AFTER (tick)
  2. Update default implementation
  3. Update wiki
  4. Remove deprecated code from GeoTools project (tick)
  5. Update the user guide
  6. review user documentation

API Changes






Usage Examples

Documentation Changes

list the pages effected by this proposal

  • No labels