Skip to content
Browse files

Speed up getFeatures query by using a proper QgsFeatureRequest

  • Loading branch information
elpaso committed Oct 19, 2018
1 parent 71e2a6b commit adb930b204ca8121e4c129efb2e7e733ac4ae486
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/
@@ -183,7 +183,7 @@ def execute_in_place_run(alg, parameters, context=None, feedback=None, raise_exc
# Get the new ids
old_ids = set([ for f in active_layer.getFeatures()])
old_ids = set([ for f in active_layer.getFeatures(req)])
if not active_layer.addFeatures(new_features):
raise QgsProcessingException(tr("Error adding processed features back into the layer."))
new_ids = set([ for f in active_layer.getFeatures(req)])

0 comments on commit adb930b

Please sign in to comment.
You can’t perform that action at this time.