[Qgis-developer] Remove editing functions from QgsVectorLayer
Jürgen E. Fischer
jef at norbit.de
Tue Apr 16 03:01:55 PDT 2013
On Tue, 16. Apr 2013 at 19:26:52 +1000, Nathan Woodrow wrote:
> Personally I'm not a fan of that.
> Why don't we make startEditing() return a edit buffer/edit session. So you
> could do this:
> session = layer.editSession()
> This would mean that everyone can keep their own edit buffers and can do
> what they want. Means you could also doing this:
> with layer.editSession() as session:
> which will commit the features at the end.
> - Nathan
And would would those session interact? Does vector layer render everything
that got added in any session and skip everything that was deleted in any
session? Can stuff added in one session already be removed in an other?
How would rollback/undo/redo work?
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
committ(ed|ing) to Quantum GIS IRC: jef on FreeNode
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