Generate orthophoto MBTiles during post-processing

pull/45/head
Seth Fitzsimmons 2018-09-04 15:39:13 -07:00
rodzic f6121f06a6
commit 839e229d1e
1 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -59,6 +59,21 @@ else
echo "gdal2tiles.py is not installed, will skip tiling"
fi
# Generate MBTiles
if hash gdal_translate 2>/dev/null; then
orthophoto_path="odm_orthophoto/odm_orthophoto.tif"
orthophoto_mbtiles_path="odm_orthophoto/odm_orthophoto.mbtiles"
if [ -e "$orthophoto_path" ]; then
gdal_translate $orthophoto_path $orthophoto_mbtiles_path -of MBTILES
gdaladdo -r bilinear $orthophoto_mbtiles_path 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
else
echo "No orthophoto found at $orthophoto_path: will skip MBTiles generation"
fi
else
echo "gdal_translate is not installed, will skip MBTiles generation"
fi
# Generate Potree point cloud (if PotreeConverter is available)
if hash PotreeConverter 2>/dev/null; then
potree_input_path=""