|NAME: Elevation and shadows with 2 meter DEM
DESCRIPTION: See underlaying terrain under different spherical lights
After releasing the first protoype  based on the 5 meter DEM  published by ICGC we have been working to transform the 2 meter DEM , derived from Lidar data and also published by ICGC as a CC-BY dataset, into a normal map for this second prototype.
The overall differences between both datasets are huge in terms of detail, and this difference can be really appreciated by comparing the same zone in both protoypes. This screen capture of the area around Poboleda, a small town in the wine making zone of Priorat, serves as a good example: the terraces are almost invisible in the 5m DEM but very present in the 2m DEM.
A Geotiff file was converted from the VRT (virtual raster) assembly of all the ASCII grid files using GDAL , and then this Geotiff was imported into L3DT software  in HF2 format to generate the normal map.
As a result of the L3DT process we had a huge pile of small PNG tiles conforming the normal map, and we have created a simple node script, TileGluer available in our GitHub , that assembles this structured panorama into a single image. This PNG image is in turn converted back to Geotiff and then processed to generate an mbtiles file to be served online.
All this work would not have been possible without code and samples from Mapzen , spheric light map from Tim Sinnot , the contributors to GDAL, Aaron and his excellent terrain tool L3DT and the hard working people at ICGC who produced the data.
 Prototype with 5 meter DEM: http://betaserver.icgc.cat/relleuiombra
 5m DEM: http://www.icgc.cat/Administracio-i-empresa/Descarregues/Elevacions/Model-d-Elevacions-del-Terreny-de-Catalunya2
 2m DEM: http://www.icgc.cat/Administracio-i-empresa/Descarregues/Elevacions/Model-d-Elevacions-del-Terreny-de-2x2-m2
 GDAL: http://www.gdal.org/
 L3DT (Large 3D Terrain Generator): http://www.bundysoft.com/L3DT/
 Tilegluer: https://github.com/geostarters/tile-gluer
 Mapzen: https://mapzen.com/
 Slope and Aspect: http://slopeandaspect.com/blogs/posts/113353862-an-interactive-slope-and-aspect-map