Bug report #1051
GRASS rasters values/labels are not shown in legend/colormap tab
|Affected QGIS version:||3.6.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||11111|
GRASS raster maps load without any error messages. However, the QGIS legend does not list the categories (only the title of the map). On clicking onto the map, the numeric ID of the individual raster cells is displayed in the pop-up window, but not the actual category labels. I have hit this problem with Ubuntu 7.04 and QGIS 0.8, and Markus Neteler has emailed me reporting the same issue with QGIS 0.9.1, tested using the landuse96_28m map from the NC OSGeo standard dataset.
#2 Updated by Giovanni Manghi almost 10 years ago
- Assignee changed from nobody - to Marco Hugentobler
- Pull Request or Patch supplied set to No
- Must fix deleted (
- Operating System deleted (
- OS version deleted (
Ubuntu 7.04, Ubuntu 9.04)
- Target version deleted (
It is a while that we have raster legends in the QGIS TOC.
When loading a (non GRASS) raster the legend in the TOC, this is populated with colors and the respective values (when selecting one of the available color ramps). If the user choose to use a colormap, or the raster comes already with a colormap, then in the "colormap" tab is possible to manually change the "label" values (that by default are set equal to the "value" values).
Actually when loading a GRASS raster (with a colormap) the colors are shown in the TOC legend, but not the values. The values are indeed available in the "colormap" tab.
See #4335 about this issue.
The user can also change manually the "label" values, empty by default, but it would be better to have this column filled with raster category labels, if available.
To test this behavior just load a DEM into a GRASS mapset, create a morphometric map with r.param.scale (feature option) and add the result to QGIS. If you want to see the raster category labels created by r.param.scale use r.category.
#10 Updated by Giovanni Manghi over 2 years ago
- Resolution set to end of life
- Status changed from Open to Closed
End of life notice: QGIS 2.18 LTR