<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 20, 2019 at 9:41 AM matteo <<a href="mailto:matteo.ghetta@gmail.com">matteo.ghetta@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Anita,<br>
<br>
you hit a good missing topic in the pyqgis documentation. I see very<br>
often people asking for support on Expressions and their use in pyqgis.<br>
<br>
What do you think to add the example also in the pyqgis documentation<br>
directly? Since the last meeting we also have the test framework ready<br>
to go [0] that helps a lot to have strong code snippet.<br>
<br>
Having all the pieces in one box is the best solution IMHO<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">I agree. I'm only hesitant since I don't have a doc writing setup on my Windows machine yet and the instructions seem to be Linux only. </div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_default" style="font-size:small">I'll see what I can do. Otherwise, I'll get back to you with the content and ask for help integrating it.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Regards,</div><div class="gmail_default" style="font-size:small">Anita</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Cheers and thanks<br>
<br>
Matteo<br>
<br>
[0]<br>
<a href="https://docs.qgis.org/testing/en/docs/documentation_guidelines/cookbook_guidelines.html" rel="noreferrer" target="_blank">https://docs.qgis.org/testing/en/docs/documentation_guidelines/cookbook_guidelines.html</a><br>
<br>
On 5/20/19 9:01 AM, Anita Graser wrote:<br>
> <br>
> <br>
> On Mon, May 20, 2019 at 2:37 AM Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a><br>
> <mailto:<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>>> wrote:<br>
> <br>
>     On Mon, 20 May 2019 at 01:21, Anita Graser <<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a><br>
>     <mailto:<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>>> wrote:<br>
>     > I'd like to add an example of an aggregate expression to my recent<br>
>     PyQGIS 101 tutorial on expressions [0]. I got expressions for<br>
>     individual features working but cannot figure out how to set the<br>
>     context for aggregate expressions correctly.<br>
>     > As far as I can tell, the PyQGIS Cookbook doesn't contain any<br>
>     information on this either [1].<br>
> <br>
>     You aren't correctly constructing your expression context:<br>
>     ...  <br>
> <br>
>     A documentation update covering this would be most welcome ;)<br>
> <br>
>  <br>
> Thank you Nyall, that's really helpful! The expression system is awesome<br>
> and powerful but I don't think anyone could guess how to use it<br>
> correctly in PyQGIS.<br>
> <br>
> I'll write it up into a tutorial and the documentation team is always<br>
> welcome to reuse the content in the official documentation. <br>
> <br>
> Regards,<br>
> Anita<br>
> <br>
>  <br>
> <br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> <br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div></div>