5

I would like to create a vector from my DEM raster so that it looks like the example I attached as an image. I want the altitude levels of the Alps in Austria to be represented in 5 different color gradations. I tried to make a vector out of the raster using "Contour" tools, but I don't want to create contour lines. Does anyone have an idea how to do it?

Example

4
  • You can also reclassify the DEM and style the output to achieve the same appearance
    – BERA
    Jun 7 at 12:02
  • 2
    @BERA Or you can can simply just style the raster with discrete intervals, no need of reclassification or vectorizing (polygon contours) at all. I personally would go with hillshade style anyway instead of this style, or combination of it.
    – Miro
    Jun 13 at 20:40
  • @Miro actually your solution produced the best result for me, thank you! Jun 19 at 11:03
  • Glad it helps. One small tip if you go this way, Symbology for rasters have bottom section called Resampling which does help a lot with 'pixelation' effect of rasters when turned to cubic or so from Nearest neighbour, making raster look smoother.
    – Miro
    Jun 19 at 11:27

1 Answer 1

6

Instead of contour lines, create contour polygons: Menu Processing > Toolbox > Contour Polygons(see QGIS documentation).

It is a tool provided by GDAL library, needs GDAL 2.4.0 or higher (should be the case in newer QGIS versions), see here for details. For older versions, GRASS tool r.recode or even raster calculator would be an alternative, see here.

Created in a few minutes from a DEM with interval 800 m: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.