Open Zaitsev opened 5 years ago
This may be related to https://rasterio.groups.io/g/main/topic/31734579, but I think your intuition is correct on this being incorrectly cached within marblecutter (it should be invalidated if any exceptions are encountered while reading, but I'm not sure how yet).
following links I finished with https://github.com/OSGeo/gdal/issues/1244#issuecomment-487164897 solution
Good news: setting CPL_VSIL_CURL_NON_CACHED="/vsicurl/"
fixes issue
Bad news: geoTiff parsed on each tile request so each next tile request time it the same as the first tile request, with cache it at least 2 times faster
Searched rasterio codes for cache
to find a way to reset cache with no success....
I've tried to change query-string and add &time=
If network error occurred during querying remote geoTiff (no s3 creds needed), marble-virtual uses cache instead of querying file again
server start: (0.1 timeout for raise Curl timeout errors)
GDAL_HTTP_TIMEOUT=0.1 CPL_CURL_VERBOSE=YES python ./server.py
try to get twice
curl http://localhost:8000/tiles/12/1183/1468?url=https://f.tiles.utility.opt-net.eu/tiles/canada-26May2019-15May2019-1/canada-26May2019-15May2019-1-LZW.tiff&rgb=4,5,6 > /dev/null
on the first query I see Curl requests, and good exception
on any further queries no Curl requests made, instead marble-virtual tries to open cached file
I've traced it to magblecutter/init.py
Is there any method to reset caches? I've tried gdal.VSIErrorReset() gdal.VSICurlClearCache() with no success, seems rasterio cached something somewhere
log :