We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128da30 commit 90db246Copy full SHA for 90db246
python/plugins/processing/tools/vector.py
@@ -221,7 +221,7 @@ def testForUniqueness(fieldList1, fieldList2):
221
def spatialindex(layer):
222
"""Creates a spatial index for the passed vector layer.
223
"""
224
- idx = QgsSpatialIndex(layer.getFeatures())
+ idx = QgsSpatialIndex(features(layer))
225
return idx
226
227
0 commit comments