Merge pull request #1790 from stephenwinn16/master

Add a WARNING when a geo file is specified but the file does not exist
pull/1799/head
Piero Toffanin 2024-08-12 23:43:25 -04:00 zatwierdzone przez GitHub
commit e6e4095844
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -187,6 +187,9 @@ class ODMLoadDatasetStage(types.ODM_Stage):
p.compute_opk()
updated += 1
log.ODM_INFO("Updated %s image positions" % updated)
# Warn if a file path is specified but it does not exist
elif tree.odm_geo_file is not None and not os.path.isfile(tree.odm_geo_file):
log.ODM_WARNING("Image geolocation file %s does not exist" % tree.odm_geo_file)
# GPSDOP override if we have GPS accuracy information (such as RTK)
if 'gps_accuracy_is_set' in args: