[Qgis-developer] set a feature's primary key after an insert

Martin Dobias wonder.sk at gmail.com
Tue Jun 3 11:46:13 EDT 2008

On Tue, Jun 3, 2008 at 5:10 PM, Stefanie Tellex <stefie10 at media.mit.edu> wrote:
> Could you guys also consider applying the second patch, that changes the
> python interface to pass by reference instead of pass by value? Otherwise I
> can't read the new key from python.  (It's attached again on this email.)

I've applied it in r8584. Thanks.
When thinking about the impact of this patch, it has a downside that
all features are copied and in the returned array there are new
instances with changed feature id - instead of changing directly the
instances that have been passed (those stay unchanged). This could be
fixed by another %MethodCode wrapper. Patches are welcome :)


More information about the Qgis-developer mailing list