Class: QgsCachedFeatureIterator¶
-
class
qgis.core.
QgsCachedFeatureIterator
(vlCache: QgsVectorLayerCache, featureRequest: QgsFeatureRequest)¶ Bases:
QgsAbstractFeatureIterator
This constructor creates a feature iterator, that delivers all cached features. No request is made to the backend.
- Parameters
vlCache (QgsVectorLayerCache) – The vector layer cache to use
featureRequest (QgsFeatureRequest) – The feature request to answer
QgsCachedFeatureIterator(
QgsCachedFeatureIterator
)Delivers features from the cache
Methods
Close this iterator.
Implementation for fetching a feature.
We have a local special iterator for FilterFids, no need to run the generic.
Rewind to the beginning of the iterator
-
close
(self) → bool¶ Close this iterator. No further features will be available.
- Return type
bool
- Returns
true if successful
-
deref
()¶
-
fetchFeature
(self, f: QgsFeature) → bool¶ Implementation for fetching a feature.
- Parameters
f (QgsFeature) – Will write to this feature
- Return type
bool
- Returns
bool true if the operation was OK
See also
bool()
-
filterRectToSourceCrs
()¶
-
geometryToDestinationCrs
()¶
-
nextFeatureFilterExpression
()¶
-
nextFeatureFilterFids
(self, f: QgsFeature) → bool¶ We have a local special iterator for FilterFids, no need to run the generic.
- Parameters
f (QgsFeature) – Will write to this feature
- Return type
bool
- Returns
bool true if the operation was OK
-
prepareSimplification
()¶
-
ref
()¶
-
rewind
(self) → bool¶ Rewind to the beginning of the iterator
- Return type
bool
- Returns
bool true if the operation was OK