Skip to content

Commit

Permalink
do not overwrite GDAL_CACHEMAX if set
Browse files Browse the repository at this point in the history
  • Loading branch information
dionhaefner committed Jun 3, 2024
1 parent 018f963 commit af67986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terracotta/scripts/optimize_rasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

IN_MEMORY_THRESHOLD = 10980 * 10980

CACHEMAX = 1024 * 1024 * 512 # 512 MB
CACHEMAX = os.environ.get("GDAL_CACHEMAX", 1024 * 1024 * 512) # 512 MB

GDAL_CONFIG = {
"GDAL_TIFF_INTERNAL_MASK": True,
Expand Down

0 comments on commit af67986

Please sign in to comment.