https://issues.qgis.org/https://issues.qgis.org/favicon.ico2011-08-20T22:48:05ZQGIS Issue TrackingQGIS Application - Bug report #4193: GRASS Rasters are not drawn with user-defined stylehttps://issues.qgis.org/issues/4193?journal_id=254782011-08-20T22:48:05ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p>AKAIK, color should be given to GRASS rasters through GRASS commands (r.colors). I agree this is a bit inconvenient, but more reliable and consistent.</p> QGIS Application - Bug report #4193: GRASS Rasters are not drawn with user-defined stylehttps://issues.qgis.org/issues/4193?journal_id=254792011-08-21T01:14:14ZAnita Graseranitagraser@gmx.at
<ul><li><strong>Target version</strong> changed from <i>Version 1.7.1</i> to <i>Version 2.0.0</i></li></ul><p>This is a new bug in nightly.</p>
<p>Styling GRASS rasters using QGIS layer properties works in 1.7 and did in all previous versions as far as I remember.</p>
<p>This bug makes using GRASS rasters a real pain and decreases the user experience.</p> QGIS Application - Bug report #4193: GRASS Rasters are not drawn with user-defined stylehttps://issues.qgis.org/issues/4193?journal_id=257272011-09-24T03:45:36ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p>Further testing: I agree, the current behaviour renders the usage very cumbersome.</p> QGIS Application - Bug report #4193: GRASS Rasters are not drawn with user-defined stylehttps://issues.qgis.org/issues/4193?journal_id=257282011-09-24T03:46:54ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Anita Graser wrote:</p>
<blockquote>
<p>This is a new bug in nightly.</p>
<p>Styling GRASS rasters using QGIS layer properties works in 1.7 and did in all previous versions as far as I remember.</p>
<p>This bug makes using GRASS rasters a real pain and decreases the user experience.</p>
</blockquote>
<p>confirmed on both linux and windows in qgis/trunk</p> QGIS Application - Bug report #4193: GRASS Rasters are not drawn with user-defined stylehttps://issues.qgis.org/issues/4193?journal_id=278912011-12-18T06:35:49ZRadim Blazekradim.blazek@gmail.com
<ul></ul><p>There were 2 problems:</p>
<p>1) bandName and bandNumber were not set on raster band stats and thus the band could not be found and it was not listed in combo - fixed in d848aa00.</p>
<p>2) Before 4d56f98f, StretchToMinimumMaximum was default, which was working well with GRASS where min/max values are always (should be), but it was making other data types (GDAL) slow, because min/max values has to be calculated (sometimes). Using NoStretch as default OTOH caused GRASS rasters be drawn as gray rectangles, because value range could be much smaller than possible data range. 08293fd4 sets min/max values and StretchToMinimumMaximum for singleband if min/max values are available. This is problem however, because a different default enhancement algorithm is shown in GUI.</p>
<p>The main problems are fixed but this ticket should not be closed until the GUI discrepancy is solved - maybe a new ticket should be opened.</p>
<p>Especially the second commit should be well tested before backport to 1.7/1.8.</p> QGIS Application - Bug report #4193: GRASS Rasters are not drawn with user-defined stylehttps://issues.qgis.org/issues/4193?journal_id=279222011-12-19T11:22:41ZRadim Blazekradim.blazek@gmail.com
<ul></ul><p>BTW, it seems that there is no way to set defaultContrastEnhancementAlgorithm apart manual setings file editing.</p> QGIS Application - Bug report #4193: GRASS Rasters are not drawn with user-defined stylehttps://issues.qgis.org/issues/4193?journal_id=281612011-12-24T06:01:06ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Crashes QGIS or corrupts data</strong> set to <i>No</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Affected QGIS version</strong> set to <i>master</i></li></ul><blockquote>
<p>The main problems are fixed but this ticket should not be closed until the GUI discrepancy is solved - maybe a new ticket should be opened.</p>
</blockquote>
<p>I believe we can document that for GRASS rasters stretching will be always enabled</p>
<blockquote>
<p>Especially the second commit should be well tested before backport to 1.7/1.8.</p>
</blockquote>
<p>for now seems to work fine, so I'll close the ticket and eventually reopen it if something surfaces later.</p>