From c7421f29e647bf738dd774d881cdfc3c63c49178 Mon Sep 17 00:00:00 2001 From: RumenMitrev <57098783+rumenmitrev@users.noreply.github.com> Date: Mon, 27 Jun 2022 12:02:25 +0300 Subject: [PATCH] Update postprocess.sh extract srs and add as option to entwine --- scripts/postprocess.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/postprocess.sh b/scripts/postprocess.sh index 73f9687..3fca48d 100755 --- a/scripts/postprocess.sh +++ b/scripts/postprocess.sh @@ -107,8 +107,12 @@ if [ ! -z "$pointcloud_input_path" ]; then if [ -e "entwine_pointcloud" ]; then rm -fr "entwine_pointcloud" fi - - entwine build --threads $(nproc) --tmp "entwine_pointcloud-tmp" -i "$pointcloud_input_path" -o entwine_pointcloud + + #extract srs and add as option to entwine + + srs=`grep -oPm1 "(?<=)[^<]+" < images/SysUTM.xml` + + entwine build --srs "$srs" --threads $(nproc) --tmp "entwine_pointcloud-tmp" -i "$pointcloud_input_path" -o entwine_pointcloud # Cleanup if [ -e "entwine_pointcloud-tmp" ]; then