Re: [gdal-dev] Wrong statistics from gdalinfo

2014-08-27 Thread Rahkonen Jukka (Tike)
> Jukka, > > I suspect the file has been updated after first statistics have been > computed, or > perhaps they have been computed in -approx_stats mode. > > gdalinfo -stats doesn't recompute statistics if they are already stored in > the file. All right, the statistics are how they are becaus

Re: [gdal-dev] Wrong statistics from gdalinfo

2014-08-27 Thread Even Rouault
Jukka, I suspect the file has been updated after first statistics have been computed, or perhaps they have been computed in -approx_stats mode. gdalinfo -stats doesn't recompute statistics if they are already stored in the file. I've done a "gdal_translate dem_10m.tif out.tif -co tiled=yes -co

[gdal-dev] Wrong statistics from gdalinfo

2014-08-27 Thread Jukka Rahkonen
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: