Skip to content
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 1 changed file with 1 addition and 1 deletion.
@@ -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.