Matt,
Le 17/06/2021 à 19:14, [email protected] a écrit :
I see in https://gdal.org/python/osgeo.gdal-module.html#SetCacheMax
<https://gdal.org/python/osgeo.gdal-module.html#SetCacheMax> we set
the value using bytes. Is there a prebuilt method to convert units
like percent, megabytes, gigabytes to bytes or is it up to us to build
one?
up to the user
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.
Even--
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