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?
-
You can also reclassify the DEM and style the output to achieve the same appearance– BERAJun 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.– MiroJun 13 at 20:40
-
@Miro actually your solution produced the best result for me, thank you!– Barrylim_workJun 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.– MiroJun 19 at 11:27
1 Answer
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.