Credits: Wikipedia So far we’ve used our Digital Elevation Model (DEM) to create hillshade and color relief . Contours is another common cartographic method used to show the shape of the terrain. If contour lines are placed close to each other, it means that the terrain is steep. Let’s add some contours for our terrain map of Jotunheimen. We can use a GDAL command, gdal_contour , to create vector contour lines from a DEM: gdal_contour -a height jotunheimen.tif jotunheimen_contour_25m.shp -i 25.0 The resulting shapefile has an attribute named “height” (-a) containing the elevation of each contour line. The contour interval, the difference in elevation between successive contour lines, is 25 meters (-i). Let's render the contour lines with Mapnik ( jotunheimen_contours.xml ): We can use Nik2Img to create an image from the Mapnik XML file: nik2img.py jotunheimen_contours.xml jotunheimen_contours.png -d 4096 4096 --projected-extent 460000 6810000 470000 ...