Bug report #1051

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

Added by royster - almost 16 years ago. Updated about 5 years ago.

Status:Open
Priority:Low
Assignee:-
Category:Map Legend
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

Description

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.

History

#1 Updated by Giovanni Manghi almost 15 years ago

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

#2 Updated by Giovanni Manghi over 12 years ago

  • Assignee changed from nobody - to Marco Hugentobler
  • Pull Request or Patch supplied set to No
  • Must fix deleted (No)
  • Operating System deleted (All)
  • OS version deleted (Ubuntu 7.04, Ubuntu 9.04)
  • Target version deleted (Version 1.7.0)

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.

#3 Updated by Giovanni Manghi over 12 years ago

  • Subject changed from QGIS fails to display GRASS raster category labels in legend to GRASS rasters values/labels are not shown in legend/colormap tab

#4 Updated by Giovanni Manghi over 12 years ago

  • Target version set to Version 1.7.4

#5 Updated by Paolo Cavallini about 12 years ago

  • Affected QGIS version set to master
  • Crashes QGIS or corrupts data set to No
  • Target version changed from Version 1.7.4 to Version 1.8.0

#6 Updated by Paolo Cavallini over 11 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#7 Updated by Jürgen Fischer almost 10 years ago

  • Target version changed from Version 2.0.0 to Future Release - Lower Priority

#8 Updated by Jürgen Fischer about 8 years ago

  • Assignee deleted (Marco Hugentobler)

#9 Updated by Giovanni Manghi almost 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#10 Updated by Giovanni Manghi about 5 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

#11 Updated by Paolo Cavallini about 5 years ago

  • Resolution deleted (end of life)
  • Status changed from Closed to Open
  • Affected QGIS version changed from master to 3.6.0

Also available in: Atom PDF