Skip to content

Commit e6e4095

Browse files
authored
Merge pull request #1790 from stephenwinn16/master
Add a WARNING when a geo file is specified but the file does not exist
2 parents 946b39a + 0f89fa8 commit e6e4095

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stages/dataset.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ def find_mask(photo_path, masks):
187187
p.compute_opk()
188188
updated += 1
189189
log.ODM_INFO("Updated %s image positions" % updated)
190+
# Warn if a file path is specified but it does not exist
191+
elif tree.odm_geo_file is not None and not os.path.isfile(tree.odm_geo_file):
192+
log.ODM_WARNING("Image geolocation file %s does not exist" % tree.odm_geo_file)
190193

191194
# GPSDOP override if we have GPS accuracy information (such as RTK)
192195
if 'gps_accuracy_is_set' in args:

0 commit comments

Comments
 (0)