[Qgis-user] geocoding plugin

Jürgen E. Fischer jef at norbit.de
Thu Jun 25 09:55:24 PDT 2009


Hi Paolo,

On Thu, 25. Jun 2009 at 18:31:38 +0200, Paolo Cavallini wrote:
>     self.provider.addAttributes( { "address" : "string" } )
> TypeError: argument 1 of QgsVectorDataProvider.addAttributes() has an invalid type

addAttributes() takes a list of QgsFields in trunk[1], i.e. you don't just pass
name and type of the attribute, but also length, precision and a comment.


Jürgen

[1] http://doc.qgis.org/head/classQgsVectorDataProvider.html#c3d0927cff569c3b19b8be56cf1541c6


-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502




More information about the Qgis-user mailing list