fix: gdalbuildvrt fails when different coordinate system desc TDE-818 #596
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is to fix the
gdalbuildvrt does not support heterogenous projection
error when the coordinate system description is different (for tiffs having the same EPSG). This also allows to build a VRT file with tiffs having different EPSG, which is not what we want. However, in our workflow, theargo-task
tile-index-validate
verify that all the images have the same EPSG code.Tests
I've been testing this fix retiling
DEM_BA32_2016_1000_4032.tif
andDEM_BA32_2016_1000_4031.tif
which was failing without this fix.I could not generate a test case from the production case having this issue we had. The process to create a lighter tiff does modify this coordinate system description removing the slight difference that was present before generating "smaller" tiffs.