<div dir="ltr"><div>Many raster bands contain nodata, therefore it would be helpful if the number of non-nodata grid cells could be reported by gdalinfo in some way.</div><div><br></div><div>The number of non-nodata grid cells is not available through GDALGetRasterStatistics() / GDALRasterBand::GetStatistics(), probably because approximations can be stored as raster band statistics, and the number of non-nodata grid cells is unknown in case of approximations.</div><div><br></div><div>Therefore I suggest to report the number of non-nodata grid cells only if all grid cells are evaluated, i.e. with<br></div><div><br></div><div><dt><b>gdalinfo -mm</b></dt>
<dd>Force computation of the actual min/max values for each band in the dataset. </dd></div><div><br></div><div>The number of non-nodata grid cells would be a small piece of quite useful information to quickly evaluate the usefulness of a raster band.</div><div><br></div><div><div>Asking for the possibility to enhance a bit the output of gdalinfo,<br></div><div><br></div></div><div>Markus<br></div></div>