Remove legacy code to handle non-georeferenced point clouds reruns

pull/1239/head
Piero Toffanin 2021-03-07 13:22:19 -05:00
rodzic e36ce32c0c
commit 59cdca704c
1 zmienionych plików z 0 dodań i 10 usunięć

Wyświetl plik

@ -23,20 +23,10 @@ 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)
ignore_resolution = True
pseudo_georeference = True
resolution = gsd.cap_resolution(args.dem_resolution, tree.opensfm_reconstruction,
gsd_error_estimate=-3,
ignore_gsd=args.ignore_gsd,