PHP+Python scripts for building simple server with hillshade tiles
BSD-3-CLAUSE License
PHP+Python scripts for building simple server with hillshade tiles. You can try result here.
find /data/dem/ -type f -name *.hgt | \
while read file ; do \
gdal_translate -of GTiff "$file" "$file.tif" \
done
find /data/dem/ -type f -name *.hgt.tif > /data/dem/files.lst
gdalbuildvrt -input_file_list /data/dem/files.lst /data/dem/full.vrt
cd /data/dem
gdalwarp \
-of GTiff \
-dstnodata 0 \
-t_srs "EPSG:3857" \
-r "cubic" \
-multi \
-co "TILED=YES" \
-ts 65536 0 \
"files.vrt" \
"low-zoom-7.tif"
gdalwarp \
-of GTiff \
-dstnodata 0 \
-t_srs "EPSG:3857" \
-r "cubic" \
-multi \
-co "TILED=YES" \
-ts 8192 0 \
"files.vrt" \
"low-zoom-4.tif"
config.php.example
config.php
and setup paths and other properties for your serverTODO