qissue-bot / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
http://qgis.org
GNU General Public License v2.0
0 stars 0 forks source link

GRASS rasters values/labels are not shown in legend/colormap tab #1038

Open qissue-bot opened 5 years ago

qissue-bot commented 5 years ago

Author Name: royster - (royster -) Original Redmine Issue: 1051, https://issues.qgis.org/issues/1051


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.

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2009-07-09T08:02:41.000Z


Seems to me is still the same under qgis 1.2 from trunk, grass svn under Ubuntu 9.04.

Pushing the milestone to 1.2

qissue-bot commented 5 years ago

Original Redmine Comment Author Name: Giovanni Manghi (Giovanni Manghi) Original Date: 2011-10-07T09:58:19.000Z


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.