[Qgis-developer] cannot call QgsVectorDataProvider.changeGeometryValues() from python

Denis Rouzaud denis.rouzaud at gmail.com
Tue Jan 17 05:40:42 EST 2012


Hi,

I tried to call changeGeometryValues from a plugin without any success. 
I tried with a dictionnary, a list and a set.

changeGeometryValues is expecting a QgsGeometryMap. As I undestrood, 
there is no equivalent for QMap in python, and I should use a dict...but 
I get this error:
TypeError: QgsVectorDataProvider.changeGeometryValues(): argument 1 has 
unexpected type 'dict'

I can use the QgsVectorLayer.changeGeometry() but I have to startEditing 
and commitChanges, and I also think it might be slower.

Should I post a bug in the tracker or did I do something wrong?

Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120117/c9aa59c6/attachment-0001.html


More information about the Qgis-developer mailing list