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

Use QgsStatisticalSummary for merge attributes dialog #2425

Closed
wants to merge 1 commit into from

Conversation

nyalldawson
Copy link
Collaborator

Rationale:

  • adds a lot of new stats (eg Q1/Q3/st dev/majority/...)
  • avoids code duplication
  • QgsStatisticalSummary is designed to be the reference implementation for calculations such as these in QGIS. It's been heavily tested & has good unit test coverage

Let me know if there's other areas of the code which have their own implementation of sum/mean/etc type calculations and I'll flip them over too.

Adds a bunch of new stats and avoids code duplication
@m-kuhn
Copy link
Member

m-kuhn commented Nov 7, 2015

Cool, can we integrate it with the expression engine (aggregate functions would be great)? :-)

Is there anything making you hesitate to merge it?

@nyalldawson
Copy link
Collaborator Author

@m-kuhn eventually yes... With some context magic that would be possible. Not on my list at the moment though!

Re why not merge now: I thought I'd give the process outlined in qgis/QGIS-Enhancement-Proposals#52 a shot and see how it works in practice for something like this.

@nyalldawson
Copy link
Collaborator Author

Merged in df6c710

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

Successfully merging this pull request may close these issues.

2 participants