From af67986e5bdc2aedc75ef21b1489af4fd8e38de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dion=20H=C3=A4fner?= Date: Mon, 3 Jun 2024 21:55:37 +0200 Subject: [PATCH] do not overwrite GDAL_CACHEMAX if set --- terracotta/scripts/optimize_rasters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terracotta/scripts/optimize_rasters.py b/terracotta/scripts/optimize_rasters.py index 32c7e707..70a4876e 100644 --- a/terracotta/scripts/optimize_rasters.py +++ b/terracotta/scripts/optimize_rasters.py @@ -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,