Skip to content
Browse files

fix python provider

  • Loading branch information
Julien Cabieces authored and troopa81 committed Jan 28, 2020
1 parent 4fee5e9 commit 2053cb585414288c8b43efece3adb2063e2f395b
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/src/python/
@@ -78,6 +78,10 @@ def __init__(self, source, request):
if self._filter_rect is not None and self._source._provider._spatialindex is not None:
self._feature_id_list = self._source._provider._spatialindex.intersects(self._filter_rect)

if self._request.filterType() == QgsFeatureRequest.FilterFid or self._request.filterType() == QgsFeatureRequest.FilterFids:
fids = [self._request.filterFid()] if self._request.filterType() == QgsFeatureRequest.FilterFid else self._request.filterFids()
self._feature_id_list = list(set(self._feature_id_list).intersection(set(fids))) if self._feature_id_list else fids

def fetchFeature(self, f):
"""fetch next feature, return true on success"""
#virtual bool nextFeature( QgsFeature &f );

0 comments on commit 2053cb5

Please sign in to comment.
You can’t perform that action at this time.