[Qgis-community-team] Programmatically iterate over features with Processing in QGIS 3
DelazJ
delazj at gmail.com
Wed Sep 12 22:40:08 PDT 2018
Hi,
CCing to qgis-dev as nobody in community seems... inspired by the question
and I'd like to close that old PR and rebase other changes.
Thanks for any hint.
Harrissou
Le mar. 11 sept. 2018 à 18:12, DelazJ <delazj at gmail.com> a écrit :
> Hi all,
>
> QGIS documentation states [0] that Processing can be used to iterate over
> features with the following code:
>
> import processingfeatures = processing.features(layer)for feature in features:
> # do whatever you need with the feature
>
> This code no longer works in QGIS3 and needs an update [1] I fail to find.
> So anyone to suggest the right replacement, please?
>
>
> [0] https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/vector.html#iterating-over-selected-features
> [1] https://github.com/qgis/QGIS-Documentation/pull/2871
>
> Thanks,
>
> Harrissou
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-community-team/attachments/20180913/f48bf767/attachment.html>
More information about the Qgis-community-team
mailing list