[Qgis-developer] addAttribute to memory layer

Gino Pirelli luipir at gmail.com
Tue Oct 8 01:26:11 PDT 2013


explication is in the code

http://www.qgis.org/api/qgsvectorlayer_8cpp_source.html#l03192

it' important to follow the emitted signal and related listener to know
exactly all involved cmponents

ciao ginetto




On 8 October 2013 10:04, Ing. Pierluigi De Rosa <
pierluigi.derosa at gfosservices.it> wrote:

> Thanks Alessando,
> It was what I was looking for.
>
> My error was I didn't updated fields using:
> vectorlayer.updateFields()
>
> Why it is necessary to call it when a field is added into provider?
>
> Thanks
> Pierluigi
>
>
> Il giorno lun, 07/10/2013 alle 10.51 +0200, Alessandro Pasotti ha
> scritto:
> > You can try this method:
> >
> >  https://github.com/elpaso/qgis-geocoding/blob/master/GeoCoding.py#L289
> >
> >
> --
>
>
> ________________________________________________________________________
> Ing. Pierluigi De Rosa (PhD)
> Studio Associato GFOSSERVICES
>
> Via Tilli 58 - 06127 Perugia (PG)
> tel: 075 7825101 / fax: 075 7823038
> cel: 3497558268
> web: www.gfosservices.it
> skype: pierluigi.derosa
>
> --
>
>
> ________________________________________________________________________
> Ing. Pierluigi De Rosa (PhD)
> Studio Associato GFOSSERVICES
>
> Via Tilli 58 - 06127 Perugia (PG)
> tel: 075 7825101 / fax: 075 7823038
> cel: 3497558268
> web: www.gfosservices.it
> skype: pierluigi.derosa
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131008/f363a592/attachment.html>


More information about the Qgis-developer mailing list