Elevation and shadow now with 2 meter DEM

  • Roses NAME: Elevation and shadows with 2 meter DEM

    DESCRIPTION: See underlaying terrain under different spherical lights

    LINK: http://betaserver.icgc.cat/relleuiombra2m

    After releasing the first protoype [1] based on the 5 meter DEM [2] published by ICGC we have been working to transform the 2 meter DEM [3], 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.

    Poboleda 5m

    Poboleda, 5 meters DEM

     

    Poboleda 2m

    Poboleda, 2 meters DEM

    A Geotiff file was converted from the VRT (virtual raster) assembly of all the ASCII grid files using GDAL [4], and then this Geotiff was imported into L3DT software [5] 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 [6], 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 [7], spheric light map from Tim Sinnot [8], the contributors to GDAL, Aaron and his excellent terrain tool L3DT and the hard working people at ICGC who produced the data.

    Prototype: http://betaserver.icgc.cat/relleuiombra2m

    [1] Prototype with 5 meter DEM: http://betaserver.icgc.cat/relleuiombra
    [2] 5m DEM: http://www.icgc.cat/Administracio-i-empresa/Descarregues/Elevacions/Model-d-Elevacions-del-Terreny-de-Catalunya2
    [3] 2m DEM: http://www.icgc.cat/Administracio-i-empresa/Descarregues/Elevacions/Model-d-Elevacions-del-Terreny-de-2x2-m2
    [4] GDAL: http://www.gdal.org/
    [5] L3DT (Large 3D Terrain Generator): http://www.bundysoft.com/L3DT/
    [6] Tilegluer: https://github.com/geostarters/tile-gluer
    [7] Mapzen: https://mapzen.com/
    [8] Slope and Aspect: http://slopeandaspect.com/blogs/posts/113353862-an-interactive-slope-and-aspect-map

     

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)