Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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