-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong legends/ramps for rasters #14658
Comments
Author Name: Giovanni Manghi (@gioman) Alexander Bruy wrote:
Hi Alexander, that's weird, I also tested qgis master on both Windows and Linux. Do you mean that you are getting legends with the expected values? |
Author Name: Alexander Bruy (@alexbruy) Giovanni Manghi wrote:
Right, I get correct legend values. In case with reclassified DEM this is 0 and 1. In case with "aspect" analysis results this is 0.14579 and 360. Maybe this is because you use 64bit system? |
Author Name: Giovanni Manghi (@gioman) Alexander Bruy wrote:
My Linux box is 64 bit but my Windows VM is 32 bit, so should be something else. But what? |
Author Name: Paolo Cavallini (@pcav) Confirmed here on Debian unstable 64bit (values from -8 to +399) |
Author Name: Giovanni Manghi (@gioman) But I'm sure I got the same also on a 32bit system... |
Author Name: Giovanni Manghi (@gioman) loading the attached raster (dem_lipped.tif), without applying any particular color map, in the legend I see a "-32767-32768" that I also don't uderstand
|
Author Name: Alexander Bruy (@alexbruy) Giovanni Manghi wrote:
Confirmed but only when contrast enhacement is "Not set" or "Clip to MinMax". In all other cases I get correct values. |
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Paolo Cavallini (@pcav)
|
Author Name: Giovanni Manghi (@gioman) This has been fixed in master.
|
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 4806
Affected QGIS version: master
Redmine category:rasters
Steps:
add the attached raster (is a DEM)
calculate the "aspect" map with the terrain analysis tool or with the gdaldem tool
The min/max values of the output are
STATISTICS_MINIMUM=0
STATISTICS_MAXIMUM=359.87353515625
but the legend will show values as
-9.8
398.8
which do not make any sense (see attached screenshot)
Another example is if you reclassify (with the raster calculator) the same DEM to a map with just "0" and "1"
the resulting map will show a legend with values as
0.3
1.4
that once again do not make any sense.
The text was updated successfully, but these errors were encountered: