Class: QgsCachedFeatureWriterIterator¶
Uses another iterator as backend and writes features to the cache.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Internal feature iterator to be implemented within data providers. |
Abstract Methods
Close this iterator. |
|
Implementation for fetching a feature. |
|
Rewind to the beginning of the iterator |
- class qgis.core.QgsCachedFeatureWriterIterator[source]¶
Bases:
QgsAbstractFeatureIterator- __init__(vlCache: QgsVectorLayerCache | None, featureRequest: QgsFeatureRequest)
This constructor creates a feature iterator, which queries the backend and caches retrieved features.
- Parameters:
vlCache (Optional[QgsVectorLayerCache]) – The vector layer cache to use
featureRequest (QgsFeatureRequest) – The feature request to answer
- __init__(a0: QgsCachedFeatureWriterIterator)
- Parameters:
- abstract close(self) bool[source]¶
Close this iterator. No further features will be available.
- Return type:
bool
- Returns:
Trueif successful
- abstract fetchFeature(self, f: QgsFeature) bool[source]¶
Implementation for fetching a feature.
- Parameters:
f (QgsFeature) – Will write to this feature
- Return type:
bool
- Returns:
bool
Trueif the operation was OK