Bug report #11049

Wrong properties statistics and style minimum and maximum for grids

Added by Miroslav Umlauf over 9 years ago. Updated about 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Rasters
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:19385

Description

I have geotif grids created by GDAL/QGIS (1 band, Float32) which come up with wrong minimum and maximum values in QGIS. Very dangerous problem for me actually.

As example one grid with double checked min/max values:
minimum: 0, maximum: 13.832950

In the properties statistics of QGIS:
STATISTICS_MAXIMUM=8.1215000152588
STATISTICS_MEAN=0.70247567682259
STATISTICS_MINIMUM=9.9999997171807e-010
STATISTICS_STDDEV=1.2959636169154

Load min/max in style tab in QGIS:
Min: 1e-09
Max: 8.1215

The same if I make 1e-09 as additional no data value in transparency tab:
Min: 1e-08
Max: 13.8329

Attached image:
Proof that grid has values over 8.1215 (10 m contour, >10 values both in info tool and value tool)

wrong_statistics_01.png - Proof that grid has values over 8.1215 (10 m contour, >10 values both in info tool and value tool) (82.7 KB) Miroslav Umlauf, 2014-08-13 07:36 PM

wrong_value.png (19.2 KB) Miroslav Umlauf, 2014-12-02 08:38 PM


Related issues

Related to QGIS Application - Bug report #10617: Wrong handling no data value -1e+32 Closed 2014-06-18

History

#1 Updated by Jürgen Fischer over 9 years ago

  • Category set to Rasters

#2 Updated by Miroslav Umlauf over 9 years ago

Still the same issue in master. Any chance to get this updated? It has obviously to do something with wrong handling of values - "Float" in python?

#3 Updated by Giovanni Manghi over 9 years ago

  • Affected QGIS version changed from 2.4.0 to master
  • Priority changed from High to Normal

#4 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#5 Updated by Giovanni Manghi about 5 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF