Added alpha transparency in DTM/DSM derivatives

pull/19/head
Piero Toffanin 2017-06-30 16:00:49 -04:00
rodzic 7dc78379d9
commit 3ab3195c2f
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -9,3 +9,4 @@
80% 255 255 0
90% 255 128 0
100% 255 0 0
nv 0 0 0 0

Wyświetl plik

@ -28,7 +28,7 @@ if hash gdaldem 2>/dev/null; then
for dem_product in ${dem_products[@]}; do
dem_path="odm_dem/""$dem_product"".tif"
gdaldem color-relief $dem_path $script_path/color_relief.txt "odm_dem/""$dem_product""_colored.tif"
gdaldem color-relief $dem_path $script_path/color_relief.txt "odm_dem/""$dem_product""_colored.tif" -alpha -co ALPHA=YES
gdaldem hillshade $dem_path "odm_dem/""$dem_product""_hillshade.tif" -z 1.0 -s 1.0 -az 315.0 -alt 45.0
python "$script_path/hsv_merge.py" "odm_dem/""$dem_product""_colored.tif" "odm_dem/""$dem_product""_hillshade.tif" "odm_dem/""$dem_product""_colored_hillshade.tif"
done