Le 17/06/2021 à 19:44, [email protected] a écrit :
you could also call gdal.SetConfigOption('GDAL_CACHEMAX', string), but
you need to do that *before* reading any raster in the process (or any
call to gdal.SetCacheMax/GetCacheMax), otherwise it will be ignored.
Thanks! …/Later/: How to use it? It doesn’t seem to work for me:
That's exacly what I wrote :-) you can't use
gdal.SetConfigOption('GDAL_CACHEMAX', string) after calling
gdal.SetCacheMax/GetCacheMax. You need to use gdal.SetCacheMax() after.
That's not to annoy users, but we just don't want to pay the cost of
reading an environment variable each time GDALGetCacheMax() is used
internally, potentially in time critical code paths, so it is read just
once.//
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev