Jürgen E. Fischer
jef at norbit.de
Thu Nov 6 12:34:23 EST 2008
On Thu, 06. Nov 2008 at 11:54:44 -0500, Stefanie Tellex wrote:
> Anyway, the way I am doing it is by making a new layer that contained
> added features, and never committing those features to the database.
> Other code that I wrote needs to know what features are in that layer.
The QgsVectorLayer::select/::nextFeature combo now includes added
features, while the layer is editable. And one could tell existing
and added features apart by looking at their featureId, which is
negative for added features.
> At a higher level, knowing added but uncommitted features in a layer
> seems like a reasonable thing to put in the public API.
There might be changed attributes or changed geometries for the added
features, which might not be uptodate in the added feature list - so
that might be an issue.
Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-20
Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50
Software Engineer D-26506 Norden http://www.norbit.de
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502
More information about the Qgis-developer