<div dir="ltr"><br><br>On Sat, Jun 16, 2018 at 6:38 PM, jratike80 <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br>><br>> Markus Metz-3 wrote<br>> > My workaround is to use GRASS r.external to get correct raster band<br>> > statistics.<br>><br>> Hi,<br>><br>> Wouldn't it be good to have an option in GDAL to force it to re-compute<br>> statistics? After all, statistics is just metadata and they can be all wrong<br><div>> if you have touched the image with a third-party software.</div><div><br></div><div>That would be helpful.<br></div><div><br></div><div>Regarding gdalinfo,</div><div> - gdalinfo would report what it does right now (includes any STATISTICS_* metadata items)<br></div><div> - gdalinfo -stats would compute raster band stats using all grid cells, ignoring any STATISTICS_* metadata items<br></div><div> - gdalinfo -approx-stats would compute raster band stats using a sample of all grid cells, ignoring any STATISTICS_* metadata items<br></div><div><br></div><div>Markus<br></div><div>></div>> -Jukka Rahkonen-<br>><br>><br>><br>> --<br>> Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html">http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>> _______________________________________________<br>> gdal-dev mailing list<br>> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br><br></div>