From 0f89fa8385f6b0b9eaa5b172f5ee0d0811fbef00 Mon Sep 17 00:00:00 2001 From: Stephen Winn Date: Tue, 13 Aug 2024 10:05:04 +0900 Subject: [PATCH] Add a warning when a geo file path is specified but the file does not exist --- stages/dataset.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stages/dataset.py b/stages/dataset.py index a99bca356..8314f4b83 100644 --- a/stages/dataset.py +++ b/stages/dataset.py @@ -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: