[gdal-dev] gdalinfo -mm also report n (number of grid cells that are not nodata)
Markus Metz
markus.metz.giswork at gmail.com
Sun Jun 17 12:34:17 PDT 2018
On Sun, Jun 17, 2018 at 7:51 PM, Even Rouault <even.rouault at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180617/c3b78b61/attachment.html>
More information about the gdal-dev
mailing list