Closed druidance closed 9 months ago
This is both a usage issue from yours and a GDAL bug:
options=GEOTIFF_CREATION_OPTIONS
to creationOptions=GEOTIFF_CREATION_OPTIONS
in both gdal.Translate() and gdal.Warp() invokationsThis is both a usage issue from yours and a GDAL bug:
- To fix the issue on your side, you have to change
options=GEOTIFF_CREATION_OPTIONS
tocreationOptions=GEOTIFF_CREATION_OPTIONS
in both gdal.Translate() and gdal.Warp() invokations- GDAL fix in Python bindings: gdal.Translate()/gdal.Warp()/etc.: make sure not to … #9260
@rouault, thank you so much for providing a solution to my issue! I tested it out, and the updated code now works as expectated. You're superfast and superaccurate as always :+1:
Expected behavior and actual behavior.
Expected behavior: For each folder:
Actual behavior: When the loop goes for the second folder and dives into the merging algorythm, an error is raised:
RuntimeError: Unknown option name '-dstnodata'
.Here's what I noticed during testing:
Steps to reproduce the problem.
Prereq:
Specific images used:
Operating system
Ubuntu 23.10 64 bit / Debian 12.4 (in Docker)
GDAL version and provenance
GDAL 3.7.1 / 3.6.2 (apt)
Python version
3.11.6
polygons_shp.zip
edit: typo