Opened 15 years ago
Closed 14 years ago
#1816 closed bug (fixed)
GRASS color tables not applied correctly
Reported by: | pcav | Owned by: | rugginoso |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.5.0 |
Component: | GRASS | Version: | Trunk |
Keywords: | Cc: | neteler | |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
I'm following: http://trac.osgeo.org/grass/wiki/HowToTestGrass6 All fine, but for the fact that the calculated ndvi map appears on grey scale, and applying the ndvi color table does not change it. /usr/lib/grass64/etc/colors/ndvi seems ok:
-1.000 5 24 82 -0.300 5 24 82 -0.180 255 255 255
0.000 255 255 255 0.025 206 197 180 0.075 191 163 124 0.125 179 174 96 0.150 163 181 80 0.175 144 170 60 0.233 166 195 29 0.266 135 183 3 0.333 121 175 1 0.366 101 163 0 0.433 78 151 0 0.466 43 132 4 0.550 0 114 0 0.650 0 90 1 0.750 0 73 0 0.850 0 56 0 0.950 0 31 0 1.000 0 0 0
And in fact in GRASS the same layer is shown correctly. This has been tested by at least three people, in different Linux distros.
I get these warnings: Warning: QPainter::setPen: Painter not active Warning: QPainter::setFont: Painter not active Warning: QPainter::end: Painter not active, aborted Warning: QPixmap::scaled: Pixmap is a null pixmap Warning: Object::connect: No such signal QgsRasterLayer::editingStarted() in /storage/build/qgis_unstable/src/app/legend/qgslegend.cpp:548 Warning: Object::connect: No such signal QgsRasterLayer::editingStopped() in /storage/build/qgis_unstable/src/app/legend/qgslegend.cpp:549
But I do not know if they are relevant.
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Cc: | added |
---|
comment:3 by , 15 years ago
Summary: | NDVI colors not shown correctly → GRASS color tables not applied correctly |
---|
Apparently also other color tables do not show correctly, eg CORINE
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This should be fixed by new GRASS raster provider in r12880 , GRASS color tables are using directly, it should render exactly like in GRASS.
See also the thread: http://lists.osgeo.org/pipermail/grass-user/2009-September/052171.html