Keep separate copc file

pull/1449/head
Piero Toffanin 2022-04-05 11:55:48 -04:00
rodzic 6914190e46
commit 330a1f5529
1 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -290,9 +290,5 @@ def post_point_cloud_steps(args, tree, rerun=False):
if args.pc_copc:
log.ODM_INFO("Creating Cloud Optimized Point Cloud (COPC)")
copc_output = io.related_file_path(tree.odm_georeferencing_model_laz, postfix="-copc")
entwine.build_copc([tree.odm_georeferencing_model_laz], copc_output)
if os.path.exists(copc_output):
# Swap
os.remove(tree.odm_georeferencing_model_laz)
shutil.move(copc_output, tree.odm_georeferencing_model_laz)
copc_output = io.related_file_path(tree.odm_georeferencing_model_laz, postfix=".copc")
entwine.build_copc([tree.odm_georeferencing_model_laz], copc_output)