I try to rasterize a multiline data set (streets) from a PostGIS database using QGIS 2.18 and SAGA GIS rasterize tool.
I managed to differentiate between street and not street but I'd need to differentiate the raster value for different road classes (1-10). I tried to set the attribute field as the respective field and chose attribute in the output value field. Unfortunately, output seems to be more as an index from 1 to 2500 than values from 1 to 10.
I also tried GDAL rasterize and GRASS v.to.rast.value. Output of the GRASS GIS is just binary (street/no street)
In the end I'd need a "categorized" raster for diffeerent kinds of road types and nodata values in the other area. It will be one layer of a suitability analysis which I plan to do with raster calculator.
How can rasterize a multiline vector file and keep the value of a particular attribute?
update 1: SAGA GIS uses the value of ID field instead of "_objectval_id_. update 2: GDAL tool would work, but I'm not able to set the raster resolution properly. update 3: obviously SAGA GIS rasterize only works when the attribute is unambiguous assigned. So I'd have to use indices for every road class or create for every class a single raster layer. correct?