[Qgis-developer] set a feature's primary key after an insert
stefie10 at media.mit.edu
Tue Jun 3 11:10:32 EDT 2008
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
Maybe Martin should look at that one since it affects the python interface.
Jürgen E. Fischer wrote:
> Hi Stefanie,
> On Tue, 03. Jun 2008 at 08:54:26 -0400, Stefanie Tellex wrote:
>> The first patch is a one liner that sets the feature's primary key to
>> the new value (using primaryKeyHighWater).
> Applied in r8583. I also updated the OGR provider accordingly.
-------------- next part --------------
--- qgis.orig/qgis_unstable/python/core/qgsvectordataprovider.sip 2008-04-30 10:56:27.000000000 -0400
+++ qgis/qgis_unstable/python/core/qgsvectordataprovider.sip 2008-04-30 11:06:49.000000000 -0400
@@ -148,7 +148,7 @@
* Adds a list of features
* @return true in case of success and false in case of failure
- virtual bool addFeatures(QList<QgsFeature> & flist);
+ virtual bool addFeatures(QList<QgsFeature> & flist /In,Out/);
* Deletes a feature
More information about the Qgis-developer