[gdal-dev] Wrong statistics from gdalinfo

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Wed Aug 27 03:03:07 PDT 2014


Hi,

My colleague found that gdalinfo -stats is giving wrong statistics for this
7.8 GB sized GeoTIFF file http://latuviitta.kapsi.fi/data/dem10m/dem_10m.tif

Gdalinfo -stats is listing

...
  Min=-999.999 Max=893.885
  Minimum=-999.999, Maximum=893.885, Mean=41.967, StdDev=174.896
  Metadata:
    STATISTICS_MAXIMUM=893.88500976563
    STATISTICS_MEAN=41.9674566748
    STATISTICS_MINIMUM=-999.9990234375
    STATISTICS_STDDEV=174.89632155312

However, there are higher values in this DEM and gdallocationinfo proves it:

C:\>gdallocationinfo -geoloc /vsicurl/
http://latuviitta.kapsi.fi/data/dem10m/dem_10m.tif 278281 7689681
Report:
  Location: (22228P,9232L)
  Band 1:
    Value: 1005.67901611328

-Jukka Rahkonen-



More information about the gdal-dev mailing list