[Qgis-developer] addAttribute to memory layer
Alessandro Pasotti
apasotti at gmail.com
Mon Oct 7 01:51:01 PDT 2013
2013/10/7 Ing. Pierluigi De Rosa <pierluigi.derosa at gfosservices.it>
> **
> Dear All,
> I'm converting a plugin with new API but I still doen't figure out how to
> add attribute to feature.
> I know it's a stupid question but i think the cookbook is till not updated?
> http://qgis.org/it/docs/pyqgis_developer_cookbook/vector.html#add-features
>
You can try this method:
https://github.com/elpaso/qgis-geocoding/blob/master/GeoCoding.py#L289
--
Alessandro Pasotti
w3: www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131007/6ddc1ed2/attachment.html>
More information about the Qgis-developer
mailing list