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.
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. Therefore I suggest to report the number of non-nodata grid cells only if all grid cells are evaluated, i.e. with *gdalinfo -mm* Force computation of the actual min/max values for each band in the dataset. 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. Asking for the possibility to enhance a bit the output of gdalinfo, Markus
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev