From 567cc3c8720bbf0c50d964b7f412bbb6e1398bd4 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 24 May 2023 13:09:35 -0400 Subject: [PATCH] File check fix --- stages/odm_georeferencing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stages/odm_georeferencing.py b/stages/odm_georeferencing.py index baf1b1be..64ceb240 100644 --- a/stages/odm_georeferencing.py +++ b/stages/odm_georeferencing.py @@ -131,7 +131,7 @@ class ODMGeoreferencingStage(types.ODM_Stage): f'--writers.las.a_srs="{reconstruction.georef.proj4()}"' # HOBU this should maybe be WKT ] - if reconstruction.has_gcp() and io.file_exists(gcp_gml_export_file): + if reconstruction.has_gcp() and io.file_exists(gcp_geojson_export_file): log.ODM_INFO("Embedding GCP info in point cloud") params += [ '--writers.las.vlrs="{\\\"filename\\\": \\\"%s\\\", \\\"user_id\\\": \\\"ODM\\\", \\\"record_id\\\": 1, \\\"description\\\": \\\"Ground Control Points (GeoJSON)\\\"}"' % gcp_geojson_export_file.replace(os.sep, "/")