-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automatically load band stats if they exist #1
Comments
There are also QgsRasterDataProvider::minimum/maximumValue() and it is not well defined what they do. Currently those methods are used for load estimated min/max in raster properties, but GRASS provider for example, is giving precise min/max. OTOH, GRASS does not have all the statistics ready (mean, stdev) so it cannot say hasStatistics(). We could add MinMax to Capabilities. |
blazek
pushed a commit
that referenced
this issue
Jun 20, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would be useful e.g. in the value tool when opening the graph.
In the gdal provider, load the cached stats (if exists) in the constructor. We could fetch the cached stats (bForce=FALSE) like this
CPLErr myerval =
GDALGetRasterStatistics( myGdalBand, bApproxOK, FALSE, &pdfMin, &pdfMax, &pdfMean, &pdfStdDev );
We could also add a hasCachedStats() function and/or add a bForce argument to bandStatistics
The text was updated successfully, but these errors were encountered: