stefie10 at media.mit.edu
Thu Nov 6 11:54:44 EST 2008
I need to make layers that contain a subset of features in the database.
The subset is not expressible as an SQL query. I suppose I could do
an "id in " query to express it, or make a temporary layer that is
backed by a file.
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.
At a higher level, knowing added but uncommitted features in a layer
seems like a reasonable thing to put in the public API.
Jürgen E. Fischer pisze:
> Hi Stefanie,
> On Wed, 05. Nov 2008 at 11:38:32 -0500, Stefanie Tellex wrote:
>> I haven't synced my code with the trunk in a few months, so I was
>> updating, and I noticed that QgsVectorLayer.addedFeatures went away. I
>> was using it to make placeholder layers that never got committed to the
>> The attached patch (against r9563) adds it back. I'd be happier if it
>> was applied, but I suppose there was a reason it got removed in the
>> first place?
> See http://trac.osgeo.org/qgis/changeset/9092. There were a bunch of
> public methods removed to gather the handling of edits in the vector
> layer and hide it from the rest.
> May I ask why you need it for?
> Mit freundlichen Grüßen,
> Jürgen Fischer
> norBIT GmbH
More information about the Qgis-developer