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.
2 parents 4059c9b + d84471b commit db55088Copy full SHA for db55088
tests/src/python/provider_python.py
@@ -92,7 +92,7 @@ def fetchFeature(self, f):
92
_f = self._source._features[list(self._source._features.keys())[self._index]]
93
self._index += 1
94
95
- if self._feature_id_list is not None and f.id() not in self._feature_id_list:
+ if self._feature_id_list is not None and _f.id() not in self._feature_id_list:
96
continue
97
98
if not self._filter_rect.isNull():
@@ -387,7 +387,7 @@ def supportsSubsetString(self):
387
def createSpatialIndex(self):
388
if self._spatialindex is None:
389
self._spatialindex = QgsSpatialIndex()
390
- for f in self._features:
+ for f in self._features.values():
391
self._spatialindex.insertFeature(f)
392
return True
393
0 commit comments