Elevation data and hillshading#

This page shows how to add elevation data to QMapShack, turn it on and shade the terrain with it.

Images: © OpenStreetMap contributors; Datenquelle: Land Tirol - data.tirol.gv.at, CC BY 4.0.

What elevation data does#

Elevation data, a DEM (digital elevation model), holds the height of the terrain. QMapShack uses it in three ways:

  • It shows the elevation of any point. With a DEM turned on, the status bar at the bottom right shows the elevation (Ele.) and slope (Slope) at the mouse pointer.

    Quickstart dem status bar
  • On request, it adds an elevation to tracks and waypoints, or replaces the one they have. A track you draw gets its elevations from it when you save it; see Drawing a track. Routes get theirs from it when QMapShack calculates them.

  • It shades the terrain on the map, so that mountains and valleys stand out.

Adding a DEM#

Elevation data usually comes as one or several image files, for example GeoTIFF. QMapShack doesn’t open them directly: it reads a .vrt file (a virtual raster), which lists the image files and joins them into one DEM.

  1. Copy the files into the DEM folder of your home folder: a single file directly into it, several files into a subfolder of their own.

  2. Click Tool → VRT Builder.

  3. Click the folder button beside Select source files and select the files you copied.

  4. Click the folder button beside Target Filename. The first time, the dialog opens in the Maps folder: go to the DEM folder, enter a name ending in .vrt and save.

  5. Click Start.

  6. Quickstart dem listed

    When the VRT Builder is done, the DEM appears in the list, gray like every DEM that is off.

A .vrt made elsewhere can point to its files by their full path, so it may not find them after a copy. Making it in the DEM folder avoids that.

Turning on the DEM#

  1. Quickstart dem dem button

    Click the button on the DEM’s row in the Dig. Elev. Model (DEM) panel. The row turns bold and says active.

  2. The map looks the same as before: the DEM shades nothing until you turn on hillshading. But where the DEM has data, the status bar now shows the elevation and slope at the mouse pointer. If it doesn’t, something is wrong with the DEM.

Shading the terrain#

  1. Quickstart dem hillshading

    Click the arrow left of the DEM’s name. Its settings open below it. Check Hillshading.

  2. Quickstart dem shaded

    The terrain is now shaded on the map: slopes facing away from the light are darker.

  3. The slider below the DEM’s name sets its opacity. QMapShack draws the DEM over the map, so dragging the slider to the right makes the shading stronger and the map darker. The slider beside Hillshading changes the relief itself: drag it to the left and slopes look steeper, to the right and the terrain looks flatter. The light always comes from the northwest.

    Quickstart dem stronger

As with a map, you can limit a DEM to a range of zoom steps with the two buttons beside the bar below the slider. See Limiting a map to a zoom range.