[Qgis-developer] Post-processing queries on postgis layers (after insert/delete/update)

Jürgen E. Fischer jef at norbit.de
Tue Mar 17 12:07:03 PDT 2015


Hi Olivier,

On Tue, 17. Mar 2015 at 18:08:18 +0100, Olivier Dalang wrote:
> I'm able to run SQL queries after inserts using this signal :
> QgsVectorLayer.committedFeaturesAdded(layerId, addedFeatures)

> The problem is that the addedFeatures array contains the features in their
> state BEFORE they were committed.

Are you sure it is?  I didn't try, but the postgres provider already updates
the feature ids of the features passed to QgsPostgresProvider::addFeatures and
and emits those in committedFeaturesAdded afterwards when the commit is run.


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode                         
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150317/77ab105d/attachment.pgp>


More information about the Qgis-developer mailing list