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
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to