Skip to content

Commit

Permalink
fix: recreate webp overviews TDE-869 (#650)
Browse files Browse the repository at this point in the history
* fix: recreate webp overviews TDE-850

* fix: formatting
  • Loading branch information
amfage authored Sep 14, 2023
1 parent d07a04f commit c1f265a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/gdal/gdal_preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
# Reduce quality of overviews to 90%
"-co",
"overview_quality=90",
"-co",
"OVERVIEWS=IGNORE_EXISTING",
]


Expand Down
3 changes: 3 additions & 0 deletions scripts/gdal/tests/gdal_preset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def test_preset_webp() -> None:
assert "overview_compress=webp" in gdal_command
assert "overview_resampling=lanczos" in gdal_command
assert "overview_quality=90" in gdal_command
assert "OVERVIEWS=IGNORE_EXISTING" in gdal_command

assert "EPSG:2193" in gdal_command

Expand All @@ -39,6 +40,7 @@ def test_preset_lzw() -> None:
assert "overview_compress=webp" in gdal_command
assert "overview_resampling=lanczos" in gdal_command
assert "overview_quality=90" in gdal_command
assert "OVERVIEWS=IGNORE_EXISTING" in gdal_command

assert "EPSG:2193" in gdal_command

Expand All @@ -59,6 +61,7 @@ def test_preset_dem_lerc() -> None:
assert "overview_compress=webp" not in gdal_command
assert "overview_resampling=lanczos" not in gdal_command
assert "overview_quality=90" not in gdal_command
assert "OVERVIEWS=IGNORE_EXISTING" not in gdal_command

assert "EPSG:2193" in gdal_command

Expand Down

0 comments on commit c1f265a

Please sign in to comment.