[QGIS-Developer] Expressions with aggregate in PyQGIS

Anita Graser anitagraser at gmx.at
Sun May 19 08:20:43 PDT 2019


Hi,

I'd like to add an example of an aggregate expression to my recent PyQGIS
101 tutorial on expressions [0]. I got expressions for individual features
working but cannot figure out how to set the context for aggregate
expressions correctly.

As far as I can tell, the PyQGIS Cookbook doesn't contain any information
on this either [1].

I'd appreciate any examples!

Regards,
Anita

[0]
https://anitagraser.com/pyqgis-101-introduction-to-qgis-python-programming-for-non-programmers/pyqgis-101-using-expressions-to-compute-new-field-values/
[1]
https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/expressions.html#evaluating-expressions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190519/dceae227/attachment.html>


More information about the QGIS-Developer mailing list