mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] add missed spatial index constructor (follow up 700441eec9)
This commit is contained in:
parent
1a51a7577b
commit
ee9e1c3328
@ -225,7 +225,7 @@ def spatialindex(layer):
|
||||
request.setSubsetOfAttributes([])
|
||||
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED) \
|
||||
and layer.selectedFeatureCount() > 0:
|
||||
idx = layer.selectedFeaturesIterator(request)
|
||||
idx = QgsSpatialIndex(layer.selectedFeaturesIterator(request))
|
||||
else:
|
||||
idx = QgsSpatialIndex(layer.getFeatures(request))
|
||||
return idx
|
||||
|
Loading…
x
Reference in New Issue
Block a user