Skip to content
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

Open
etiennesky opened this issue Jul 23, 2012 · 1 comment
Open

automatically load band stats if they exist #1

etiennesky opened this issue Jul 23, 2012 · 1 comment

Comments

@etiennesky
Copy link
Collaborator

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

@blazek
Copy link
Owner

blazek commented Jul 27, 2012

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 Nov 7, 2012
Add support for prepared API file
blazek pushed a commit that referenced this issue Jun 20, 2015
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants