Better bad GCP handling

Former-commit-id: 4fa4088d8e
pull/1161/head
Piero Toffanin 2019-10-18 13:45:36 -04:00
rodzic 471a0b1b3e
commit b90c741b62
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -140,7 +140,7 @@ def parse_srs_header(header):
elif header.lower().startswith("epsg:"):
srs = CRS.from_epsg(header.lower()[5:])
else:
log.ODM_ERROR('Could not parse coordinates. Bad SRS supplied: %s' % header)
raise RuntimeError('Could not parse coordinates. Bad SRS supplied: %s' % header)
except RuntimeError as e:
log.ODM_ERROR('Uh oh! There seems to be a problem with your coordinates/GCP file.\n\n'
'The line: %s\n\n'