Generate entwine point cloud with non-georeferenced inputs

pull/98/head
Piero Toffanin 2019-10-23 11:19:14 -04:00
rodzic 4a0adcd883
commit fb3718e694
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -6,7 +6,8 @@ EXPOSE 3000
USER root
RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs python-gdal && npm install -g nodemon && \
ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine
ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \
ln -s /code/SuperBuild/install/bin/pdal /usr/bin/pdal
RUN mkdir /var/www

Wyświetl plik

@ -78,11 +78,14 @@ if [ -e "submodels" ] && [ -e "entwine_pointcloud" ]; then
fi
if [ ! -z "$pointcloud_input_path" ]; then
# Copy the failsafe PLY point cloud to odm_georeferencing
# Convert the failsafe PLY point cloud to laz in odm_georeferencing
# if necessary, otherwise it will not get zipped
if [ "$pointcloud_input_path" == "odm_filterpoints/point_cloud.ply" ] || [ "$pointcloud_input_path" == "opensfm/depthmaps/merged.ply" ] || [ "$pointcloud_input_path" == "pmvs/recon0/models/option-0000.ply" ]; then
echo "Copying $pointcloud_input_path to odm_georeferencing/odm_georeferenced_model.ply, even though it's not georeferenced..."
cp $pointcloud_input_path "odm_georeferencing/odm_georeferenced_model.ply"
echo "Converting $pointcloud_input_path to odm_georeferencing/odm_georeferenced_model.laz, even though it's not georeferenced..."
pdal translate -i "$pointcloud_input_path" -o "odm_georeferencing/odm_georeferenced_model.laz"
if [ -e "odm_georeferencing/odm_georeferenced_model.laz" ]; then
pointcloud_input_path="odm_georeferencing/odm_georeferenced_model.laz"
fi
fi
if hash entwine 2>/dev/null; then