Last active
March 26, 2020 12:55
-
-
Save DavidMoraisFerreira/49b8ffb3abef4d13f8ff29e370e90d39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires GDAL, resulting BigTif is about 5GB | |
#https://data.public.lu/fr/datasets/digital-terrain-model-high-dem-resolution/ | |
wget https://data.public.lu/fr/datasets/r/b21141d7-afc3-42a1-9c65-4587169ef3a7 -O ANA_LUREF_NGL_DTM.zip | |
unzip ANA_LUREF_NGL_DTM.zip -d ANA_LUREF_NGL_DTM | |
cd ANA_LUREF_NGL_DTM | |
mkdir AllZones | |
cp Zone1_Zone2/* AllZones | |
cp Zone3_Zone4/* AllZones | |
gdalbuildvrt -resolution average -r nearest ANA_LUREF_NGL_DTM.vrt "AllZones/*.tif" -a_srs "EPSG:2169" | |
gdaldem hillshade ANA_LUREF_NGL_DTM.vrt lu_hillshade_2017.tif -of GTiff -b 1 -z 1.0 -s 0.5 az 315.0 -alt 45.0 | |
gdaladdo -ro --config COMPRESS DEFLATE --config COMPRESS_OVERVIEW DEFLATE --config ZLEVEL 9 --config BIGTIFF_OVERVIEW IF_SAFER --config GDAL_TIFF_OVR_BLOCKSIZE 512 -r nearest ANA_LUREF_NGL_DTM.vrt 4 16 64 256 1024 4096 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also: https://gist.github.com/DavidMoraisFerreira/1600470627096a4a427a5d71f5092209