Closed marklit closed 2 months ago
gdal_retile is neither ready for source files that have rotation terms in their geotransform, nor RPC. Currently you would probably be better implementing some sort of gdal_retile logic by scripting gdal_translate, which should be more ready for the task
Understood. I'll look into that.
What do you mean by RPC?
What do you mean by RPC?
The ugly set of stuff below the "RPC Metadata:" line in your gdalinfo output ;-) cf https://en.wikipedia.org/wiki/Rational_polynomial_coefficient and https://gdal.org/development/rfc/rfc22_rpc.html
I asked Umbra for advice on a set of gdal parameters https://twitter.com/marklit82/status/1809151161825427959
A single call to gdalwarp
fixed it.
$ wget https://umbra-open-data-catalog.s3.amazonaws.com/sar-data/tasks/ad%20hoc/Haneda_Japan/0028c361-193c-49b7-ad59-808033d5dc74/2024-02-27-01-18-51_UMBRA-07/2024-02-27-01-18-51_UMBRA-07_CSI.tif
$ gdalwarp -t_srs "EPSG:4326" 2024-02-27-01-18-51_UMBRA-07_CSI.tif warped.tif
$ gdal_retile.py \
-s_srs "EPSG:4326" \
-ps 4096 4096 \
-targetDir ./ \
warped.tif
What is the bug?
After running gdal_retile, the resulting smaller tiles are a few KM away from their parent's footprint. Here the dark tiles should be over the airport but they're offset by a few KM. The tiles produce a smaller footprint overall as well. The source image covered the entire Airport's footprint. They're also rotated incorrectly.
Steps to reproduce the issue
Versions and provenance
GDAL 3.4.1, released 2021/12/27
I'm using this version as it's the latest Ubuntu for Windows Package Manager supports.
Additional context