[Qgis-developer] Re: Complicate the plugin situation

2012-01-19 Thread 3nids
Hi all, I pushed my first plugin just now. http://hub.qgis.org/projects/itembrowser https://github.com/3nids/itembrowser I have to say it is not a trivial task and might discourage people as it is right now. There are inconsistencies in the page http://plugins.qgis.org : - the linked wiki http

[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 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

[Qgis-developer] Re: addFeatures without knowing new feature's id, bug?

2012-01-18 Thread 3nids
PS: I realized I might have wrongly tested previous fix, and that it was not working. (I did not checked that the feature has been correctly written, only that there was no error message. As I had to know the id I did not go further. I am sorry about that.) -- View this message in context:

[Qgis-developer] Re: addFeatures without knowing new feature's id, bug?

2012-01-17 Thread 3nids
Hi Giuseppe, Hi Jürgen, Thanks for the reply, everything is fine! So, thanks for the fix Jürgen! Btw, is there a way of knowing the ID of a written feature? As I want to modify it once it is written, I am doing a select to look for my feature. When using the max+1 solution, it was ok, as I knew