GDALGetRasterStatistics() ignores bApproxOK=false bForce=false
|Reported by:||rblazek||Owned by:||warmerdam|
If GDALGetRasterStatistics() is called with bApproxOK=false and bForce=false and exact statistics (from all raster pixels) are not available/cached, it should return CE_Warning. Instead, it is giving estimated (from sample) cached statistics and it returns CE_None.
Thus it is not possible to test only if exact statistics are cached to avoid GDALComputeRasterStatistics() if possible.