Navigation Menu

Skip to content

Commit

Permalink
Addressed two issues that caused createSpatialIndex() to fail. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ablakey committed Jun 19, 2018
1 parent 00f0583 commit d84471b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/provider_python.py
Expand Up @@ -92,7 +92,7 @@ def fetchFeature(self, f):
_f = self._source._features[list(self._source._features.keys())[self._index]]
self._index += 1

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:
continue

if not self._filter_rect.isNull():
Expand Down Expand Up @@ -387,7 +387,7 @@ def supportsSubsetString(self):
def createSpatialIndex(self):
if self._spatialindex is None:
self._spatialindex = QgsSpatialIndex()
for f in self._features:
for f in self._features.values():
self._spatialindex.insertFeature(f)
return True

Expand Down

0 comments on commit d84471b

Please sign in to comment.