We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
# Make sure that all processes do not consume more than GDAL_CACHEMAX os.environ['GDAL_CACHEMAX'] = '%d' % int(gdal.GetCacheMax() / nb_processes)
GDAL_CACHEMAX expects a value in MB but gdal.GetCacheMax() returns the value in bytes. https://trac.osgeo.org/gdal/wiki/ConfigOptions#SettingConfigOptions https://gdal.org/api/raster_c_api.html?highlight=getcachemax#_CPPv415GDALGetCacheMaxv
GDAL_CACHEMAX
gdal.GetCacheMax()
This is also confirmed by a log in gdal2tiles.py:
gdal2tiles.py
print("Cache: %s MB" % (gdal.GetCacheMax() / 1024 / 1024))
See behaviour. The RAM fills up, where I assume it is because of this mismatch.
Ubuntu 18.04 64 bit
The 2.4.0 version from ubuntugis-stable PPA
The text was updated successfully, but these errors were encountered:
Good analysis. Can you submit a pull request to fix that ? (I'd suggest to do a max of 1 and the result of the division, to avoid a 0 cache size)
Sorry, something went wrong.
Update cache calculation in gdal2tiles.py
4f84579
See OSGeo#2020
218189b
See #2020
eec2ce0
Fixed per #2022. Backported to branches 3.0 and 2.4
No branches or pull requests
Expected behavior and actual behavior.
GDAL_CACHEMAX
expects a value in MB butgdal.GetCacheMax()
returns the value in bytes.https://trac.osgeo.org/gdal/wiki/ConfigOptions#SettingConfigOptions
https://gdal.org/api/raster_c_api.html?highlight=getcachemax#_CPPv415GDALGetCacheMaxv
This is also confirmed by a log in
gdal2tiles.py
:Steps to reproduce the problem.
See behaviour. The RAM fills up, where I assume it is because of this mismatch.
Operating system
Ubuntu 18.04 64 bit
GDAL version and provenance
The 2.4.0 version from ubuntugis-stable PPA
The text was updated successfully, but these errors were encountered: