Re: [Qgis-developer] List of geometries corrupted when given as a function parameter.

2014-01-15 Thread Vincent Damoy
Hello Matthias, Just one question : How many meters high, the statue? :-) I've stumbled on this problem for three weeks! Indeed, this is the right code : /geom2=convert_geometries([//_QgsGeometry_//(feature.geometry()) for feature in self.iface.activeLayer().selectedFeatures()],geom_output)/

Re: [Qgis-developer] List of geometries corrupted when given as a function parameter.

2014-01-15 Thread Matthias Kuhn
Hi Vincent, Is it possible that you are hit by the bug in this report [1] The workaround would by to keep a reference to the encapsulating feature as long as you need their geometries. (Or possibly to copy the geometry with g = QgsGeometry( feature.gemetry() )) Best Matthias [1] http://hub.qg

[Qgis-developer] List of geometries corrupted when given as a function parameter.

2014-01-15 Thread Vincent Damoy
Hi to all, I'm working with QGIS 2.0.1 on a python plugin to help users enter data in a Postgis database. Among others things, this plugin can convert selected features (from points to polygons, from lines to points, etc...) _The plugin :_ operation_dialog.py is my main module. convert_geome