mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
parent
128da3002a
commit
90db246488
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user