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

2012-01-30 Thread Denis Rouzaud
Hi Jürgen, I just tested it, it's working perfectly! Thanks a lot, Denis On 01/27/2012 12:43 AM, Jürgen E. Fischer wrote: Hi Denis, On Wed, 18. Jan 2012 at 10:36:01 -0800, 3nids wrote: If you look at the python error, changeGeometryValues cannot receive a dictionnary, which is obviously

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

2012-01-26 Thread Bob English
Hi, Sorry the post didn't help. I didn't read all your posts and replies, so I was just shooting in the dark, hoping the code I posted would help. For the record, I changed the API I was using from 1.6.0 to 1.7.1, and took a lot of work to make my app behave as it did in 1.6.0. I'm not

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

2012-01-18 Thread 3nids
Hi all, I suspect there is a bug for the changeGeometryValues() as it should get a dict, similarly to the changeAttributeValues. Btw, when I used changeAttributeValues({ id: {pos : attr} }), if attr was not a QVariant, QGIS crashed (process ended) without giving any error feedback. I have

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

2012-01-18 Thread Bob English
Hi, See https://github.com/EcoGIS/CAPS-Scenario-Builder to download lots of well commented python code. See http://qgis.org/pyqgis-cookbook/index.html This code works for me. I'm using the 1.71API and my app is a desktop app rather than a plugin. feat = QgsFeature() roundPointGeom = None

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

2012-01-18 Thread 3nids
Hi, Thanks for your answer, but this is exactly what I am doing (see https://github.com/3nids/Triangulation/blob/master/place_arc.py @ line 184, commented) I am using the development version, and as the postgis provider has apparently recoded, I suspect there is something wrong. If you look at