Feature request #2440
Better support for raster providers
|Pull Request or Patch supplied:||Resolution:||fixed|
|Easy fix?:||No||Copied to github as #:||12500|
Moreover it "solved" a qgis critical bug that was not yet spotted: basically after closing a mapset (and leaving a GRASS layer in the legend), if click on the canvas with a tool such the identify qgis crashes. You can test this bug in qgis 1.4.
Nevertheless there are a few consequences in the qgis raster layer properties that would need a fix (in the provider or in the properties or maybe both).
The synptoms I see are:
A) making GRASS raster pixels transparent (properties -> transparency) does not work anymore.
B) changing the colormap (freakout, pseudocolor, colormap) does not work anymore.
C) if you tested A) and/or B) you probably already noticed that now, in the qgis raster layer properties, the "render as" property (and the below "RGB more..." or "Single Band Properties") are messed:
*) GRASS raster should always open as "single band gray" and the "three band color" should be greyed out and not available. In trunk the "render as" property for GRASS rasters shows by default the "three band color" selected (that does not make sense). You can then choose "single band gray", close the properties and then if you'll open it again "three band color" will show correctly greyed out.
*) Even when you manually choose "single band gray", the "gray band" dropdown is not populated (should show two options "band1" and "not set") and the "color map" dropdown does not show the correct otion.
*) The colormap is never shown in the appropriate tab.
#1 Updated by Redmine Admin almost 13 years ago
All the above problems cannot be solved in GRASS raster data provider. At the moment it does just what it can, it is it gives a picture to the layer.
#2 Updated by Giovanni Manghi almost 13 years ago
Well, then I believe that until we have a "Better support for raster providers" the qgis raster layer properties for GRASS rasters should be changed in order to avoid show wrong/confusing things.
Symbology of GRASS raster can be done trough GRASS and the plugin, so probably is possible to make transparent pixels of a certain color.