From 214d1f605454d945e358f63fabd6c94f41f56bf0 Mon Sep 17 00:00:00 2001 From: Alice Fage Date: Mon, 4 Nov 2024 13:07:40 +1300 Subject: [PATCH] feat: bigtiff experiment --- scripts/gdal/gdal_preset.py | 2 +- scripts/gdal/tests/gdal_preset_test.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/gdal/gdal_preset.py b/scripts/gdal/gdal_preset.py index 7f4033619..a66484856 100644 --- a/scripts/gdal/gdal_preset.py +++ b/scripts/gdal/gdal_preset.py @@ -32,7 +32,7 @@ # Do not create BIGTIFF # An error will be raise by GDAL if it fails creating a tiff > 4GB in size "-co", - "bigtiff=no", + "bigtiff=yes", # Always ignore existing overviews so they are not created from already compressed overviews "-co", "overviews=ignore_existing", diff --git a/scripts/gdal/tests/gdal_preset_test.py b/scripts/gdal/tests/gdal_preset_test.py index 0ce05fd2d..0b980bae8 100644 --- a/scripts/gdal/tests/gdal_preset_test.py +++ b/scripts/gdal/tests/gdal_preset_test.py @@ -18,8 +18,8 @@ def test_preset_webp(subtests: SubTests) -> None: with subtests.test(): assert "num_threads=all_cpus" in gdal_command - with subtests.test(): - assert "bigtiff=no" in gdal_command + # with subtests.test(): + # assert "bigtiff=no" in gdal_command # Webp lossless with subtests.test(): @@ -58,8 +58,8 @@ def test_preset_lzw(subtests: SubTests) -> None: with subtests.test(): assert "num_threads=all_cpus" in gdal_command - with subtests.test(): - assert "bigtiff=no" in gdal_command + # with subtests.test(): + # assert "bigtiff=no" in gdal_command with subtests.test(): assert "overviews=ignore_existing" in gdal_command @@ -97,8 +97,8 @@ def test_preset_dem_lerc(subtests: SubTests) -> None: with subtests.test(): assert "num_threads=all_cpus" in gdal_command - with subtests.test(): - assert "bigtiff=no" in gdal_command + # with subtests.test(): + # assert "bigtiff=no" in gdal_command with subtests.test(): assert "overviews=ignore_existing" in gdal_command