Re: [Qgis-developer] delete selected features slow (because of featurecount/events)??

2016-11-18 Thread Matthias Kuhn
Hi Richard, An edit session and an edit command are not the same thing. An edit session corresponds to clicking the pencil button (or im python startEditing() / commitChanges()). During an edit session, multiple edit commands can made. They appear as "one action" in the undo stack and some parts

Re: [Qgis-developer] delete selected features slow (because of featurecount/events)??

2016-11-16 Thread Matthias Kuhn
Hi Richard, What the trash button does is vl.beginEditCommand( "Delete Selected Features" ) vl.deleteSelectedFeatures() vl.endEditCommand() This makes me think, that the "with edit" construct could actually wrap things into a single edit command as well. Matthias On 11/14/2016 04:55 PM, Richar

Re: [Qgis-developer] delete selected features slow (because of featurecount/events)??

2016-11-16 Thread Richard Duivenvoorde
Bump... Richard On 14-11-16 16:55, Richard Duivenvoorde wrote: Hi Dev's, having a small dataset of 300 features (from an online service). I want to quickly remove most/all of those features, request a new set an put them in the same vectorlayer (in a python plugin). All ok, untill you acti

[Qgis-developer] delete selected features slow (because of featurecount/events)??

2016-11-14 Thread Richard Duivenvoorde
Hi Dev's, having a small dataset of 300 features (from an online service). I want to quickly remove most/all of those features, request a new set an put them in the same vectorlayer (in a python plugin). All ok, untill you activate the 'show feature count' in the legend. If you show the fea