<div dir="ltr"><br><br>On Sun, Jun 17, 2018 at 7:51 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br>><br>> > It would be nice if gdalinfo -stats would also trigger forced recomputation<br>> > of exact statistics. Currently there is no difference between gdalinfo with<br>> > and without -stats if statistics already exist in metadata and<br>> > STATISTICS_APPROXIMATE=YES is absent (standard case for existing data):<br>> > -stats has no effect here. Forced recomputation would be a change in the<br>> > behaviour of gdalinfo -stats.<br>><br>> gdalinfo already reports existing statistics, so indeed gdalinfo -stats could<br>> call GDALComputeRasterStatistics() to force regeneration.<br><div><br></div><div>:-)</div><div><br></div><div>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)</div><div><br></div><div>Markus<br></div></div>