Bug report #4315

"stretch histogram to full dataset" toolbar button does not work with GRASS rasters

Added by Giovanni Manghi over 12 years ago. Updated over 12 years ago.

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

Revision 8c16e631
Added by Radim Blazek over 12 years ago

use double instead of float for min/max values, fixes #4315

Revision d52ada5e
Added by Radim Blazek over 12 years ago

use double instead of float for min/max values, fixes #4315

History

#1 Updated by Giovanni Manghi over 12 years ago

  • Target version set to Version 1.7.4

#2 Updated by Radim Blazek over 12 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 over 12 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#4 Updated by Radim Blazek over 12 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).

Also available in: Atom PDF