Skip to content

Commit

Permalink
fix: gdalbuildvrt fails when coordinate system description is different
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet authored Aug 10, 2023
1 parent 223728a commit 5758400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/gdal/gdal_preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def get_build_vrt_command(files: List[str], output: str = "output.vrt", add_alph
Returns:
The GDAL command to build the VRT.
"""
gdal_command = ["gdalbuildvrt", "-strict"]
# `-allow_projection_difference` is passed to workaround different coordinate system descriptions within the same EPSG
# Having the same EPSG code for all images is already checked by `linz/argo-tasks` `tile-index-validate`
gdal_command = ["gdalbuildvrt", "-strict", "-allow_projection_difference"]
if add_alpha:
gdal_command.append("-addalpha")
gdal_command.append(output)
Expand Down

0 comments on commit 5758400

Please sign in to comment.