Open qgib opened 9 years ago
Author Name: Giovanni Manghi (@gioman)
Author Name: Paolo Cavallini (@pcav)
Still TBD in QGIS3
Author Name: Alister Hood (@AlisterH)
QGIS 2.18.x at least loaded the GRASS raster categories and colours, and was only missing the labels. Here it seems that QGIS 3.x doesn't load in anything (or at least doesn't load it correctly) - sometimes GRASS rasters aren't even visible after I load them.
For those that actually work in GRASS, the r.category.trim module will export raster categories (including labels) for loading into QGIS, which may be a helpful workaround. See https://pvanb.wordpress.com/2015/10/31/grass-gis-categorical-raster-layers-in-qgis/
Author Name: Alister Hood (@AlisterH)
Alister Hood wrote:
... Here it seems that QGIS 3.x doesn't load in anything (or at least doesn't load it correctly) - sometimes GRASS rasters aren't even visible after I load them.
There are two issues:
Incidentally, the behaviour loading layers with the GRASS provider is better than loading layers produced by GRASS algorithms. In the latter case, the correct colours are loaded, but they are part of a full palette i.e. 256 colours will show in the legend, when you might only need 2 (I assume this is a side effect of the way GRASS stores the colours in the .aux.xml file). In this case r.category.trim can't help you because you don't have the original GRASS layer (maybe you can track it down in the temporary directory, but here on Windows it lives in the AppData folder and that doesn't show up in the QGIS browser).
See also #15249.
Author Name: Paolo Cavallini (@pcav) Original Redmine Issue: 13518
Redmine category:grass
GRASS rasters can have value labes embedded in the format. Unfortunately, labels are not displayed in QGIS legend, thus missing an important piece of information. It would be good to have them.