Skip to content
Permalink
Browse files

[processing] use only selected features for spatial index

fixes #15584
  • Loading branch information
volaya authored and alexbruy committed Oct 18, 2016
1 parent 128da30 commit 90db24648894d24cecf170e1550726db1b35d99f
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/tools/vector.py
@@ -221,7 +221,7 @@ def testForUniqueness(fieldList1, fieldList2):
def spatialindex(layer):
"""Creates a spatial index for the passed vector layer.
"""
idx = QgsSpatialIndex(layer.getFeatures())
idx = QgsSpatialIndex(features(layer))
return idx


0 comments on commit 90db246

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