[gdal-dev] gdalinfo -mm also report n (number of grid cells that are not nodata)

Even Rouault even.rouault at spatialys.com
Sun Jun 17 10:51:00 PDT 2018


> It would be nice if gdalinfo -stats would also trigger forced recomputation
> of exact statistics. Currently there is no difference between gdalinfo with
> and without -stats if statistics already exist in metadata and
> STATISTICS_APPROXIMATE=YES is absent (standard case for existing data):
> -stats has no effect here. Forced recomputation would be a change in the
> behaviour of gdalinfo -stats.

gdalinfo already reports existing statistics, so indeed gdalinfo -stats could 
call GDALComputeRasterStatistics() to force regeneration.

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list