Better handling of non-geo restart

Former-commit-id: 5f33f2edd7
pull/1161/head
Piero Toffanin 2020-02-04 20:21:28 +00:00
rodzic 11d6c542fe
commit f4d9396b49
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -22,6 +22,13 @@ class ODMDEMStage(types.ODM_Stage):
pseudo_georeference = False
if not reconstruction.is_georeferenced():
# Special case to clear previous run point cloud
# (NodeODM will generate a fake georeferenced laz during postprocessing
# with non-georeferenced datasets). odm_georeferencing_model_laz should
# not be here! Perhaps we should improve this.
if io.file_exists(tree.odm_georeferencing_model_laz) and self.rerun():
os.remove(tree.odm_georeferencing_model_laz)
log.ODM_WARNING("Not georeferenced, using ungeoreferenced point cloud...")
dem_input = tree.path("odm_filterpoints", "point_cloud.ply")
pc_model_found = io.file_exists(dem_input)

Wyświetl plik

@ -53,10 +53,6 @@ class ODMGeoreferencingStage(types.ODM_Stage):
progress_per_run = 100.0 / len(nonloc.runs)
progress = 0.0
# Clear previous run point cloud
if io.file_exists(tree.odm_georeferencing_model_laz) and self.rerun():
os.remove(tree.odm_georeferencing_model_laz)
for r in nonloc.runs:
if not io.dir_exists(r['georeferencing_dir']):
system.mkdir_p(r['georeferencing_dir'])