Skip to content

rpc_from_geotiff fails if there is a textual RPC.txt next to the tiff#15

Open
AmitAronovitch wants to merge 2 commits intocentreborelli:masterfrom
AmitAronovitch:ikonos_with_rasterio
Open

rpc_from_geotiff fails if there is a textual RPC.txt next to the tiff#15
AmitAronovitch wants to merge 2 commits intocentreborelli:masterfrom
AmitAronovitch:ikonos_with_rasterio

Conversation

@AmitAronovitch
Copy link

It appears that if GDAL sees next to a geotiff my_filename.tif a file named my_filename_RPC.txt, then it will read the RPC tags from it rather than the "RPC" tag that is stored inside the tiff...

The problem is that the textual files (ikonos format) contain units, which rpc_from_geotiff does not expect.
So it fails with

E           ValueError: could not convert string to float: '+005124.00 pixels'

This PR includes a regression test that demonstrates the problem, as well as a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant