Skip to content

Instantly share code, notes, and snippets.

@DavidMoraisFerreira
Last active March 26, 2020 12:55
Show Gist options
  • Save DavidMoraisFerreira/49b8ffb3abef4d13f8ff29e370e90d39 to your computer and use it in GitHub Desktop.
Save DavidMoraisFerreira/49b8ffb3abef4d13f8ff29e370e90d39 to your computer and use it in GitHub Desktop.
#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