On Sun, Jun 17, 2018 at 7:51 PM, Even Rouault <even.roua...@spatialys.com> wrote: > > > 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.
:-) I will take a crack at implementing STATISTICS_VALID_RATIO (no API change, but some mechanism to compute statistics also if the standard STATISTICS_* metadata items exist is needed) Markus
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev