Skip to content

Commit

Permalink
Merge pull request #1790 from stephenwinn16/master
Browse files Browse the repository at this point in the history
Add a WARNING when a geo file is specified but the file does not exist
  • Loading branch information
pierotofy authored Aug 13, 2024
2 parents 946b39a + 0f89fa8 commit e6e4095
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stages/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ def find_mask(photo_path, masks):
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:
Expand Down

0 comments on commit e6e4095

Please sign in to comment.