Bug report #4315
"stretch histogram to full dataset" toolbar button does not work with GRASS rasters
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Tim Sutton | ||
Category: | Rasters | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | Copied to github as #: | 14252 |
Description
If the button is clicked then the raster colormap disappear. It is not possible to recovery not even from the raster properties, style tab, because the gray band is "lost".
Doing the stretching with the raster properties, style -> contrast enhancement -> stretch to min/max works correctly.
Tested on trunk on both Windows and Linux.
Associated revisions
use double instead of float for min/max values, fixes #4315
use double instead of float for min/max values, fixes #4315
History
#1 Updated by Giovanni Manghi about 13 years ago
- Target version set to Version 1.7.4
#2 Updated by Radim Blazek about 13 years ago
Does master work for you?
I have opposite problem in master, stretch to full dataset works but local stretch does not.
#3 Updated by Radim Blazek about 13 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset d52ada5e0d72e4d6eb8e109588f04812b0ef6c35.
#4 Updated by Radim Blazek about 13 years ago
- Target version changed from Version 1.7.4 to Version 2.0.0
Use of float for min/max values was causing problems with Float64 datasets, especially if no data value was set to an extreme value.
Fixed in d52ada5e (master).