Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cache handling of raster files #1084

Merged
merged 5 commits into from
Dec 17, 2020

Conversation

stephanr
Copy link
Member

This PR contains both a correction of the cache handling and a method to better control the raster cache for file base raster.

Previously there was the problem that the naming of cache files was derived from the raster data.
This could lead to unwanted errors in two situations.
First it can happen that raster files in different directories have identical names (For example ../data/dop/overview.tif and ../data/infrared/overview.tif).
Secodn the cache files were not distinguished between the different levels, which e.g. a geotiff can contain, and the same cache file was rewritten on every access.

 * provide helper function to create unique cache filenames in the scope of one deeegree instance for raster cacheing
 * rework IIORasterReader to honor shouldCreateCacheFile()
 * use helper function of RasterCache and current pyramid level to create a unique dataLocationId
 * port unique dataLocationId to JAIRasterReader
 * allow IIOReader to disable cache per level (abc.tif.no-cache-[level]) or per file (abc.tif.no-cache)
 * prevent cache usage of IIOReader for all files with system property deegree.raster.cache.iioreader=false
@stephanr stephanr added bug error issue and bug (fix) enhancement enhancement or improvement labels Sep 16, 2020
@stephanr stephanr changed the title WIP: Fix cache handling of raster files Fix cache handling of raster files Sep 18, 2020
@stephanr stephanr merged commit 4116667 into deegree:master Dec 17, 2020
@tfr42 tfr42 added this to the 3.4.14 milestone Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug error issue and bug (fix) enhancement enhancement or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants