Class: QgsCachedFeatureWriterIterator¶
-
class
qgis.core.
QgsCachedFeatureWriterIterator
(vlCache: QgsVectorLayerCache, featureRequest: QgsFeatureRequest)¶ Bases:
qgis._core.QgsAbstractFeatureIterator
This constructor creates a feature iterator, which queries the backend and caches retrieved features.
- Parameters
vlCache – The vector layer cache to use
featureRequest – The feature request to answer
QgsCachedFeatureWriterIterator(QgsCachedFeatureWriterIterator)
Uses another iterator as backend and writes features to the cache
Enums
Methods
Close this iterator.
Implementation for fetching a feature.
Rewind to the beginning of the iterator
Signals
Attributes
-
close
(self) → bool¶ Close this iterator. No further features will be available.
- Returns
True
if successful
-
deref
()¶
-
fetchFeature
(self, f: QgsFeature) → bool¶ Implementation for fetching a feature.
- Parameters
f – Will write to this feature
- Returns
bool
True
if the operation was OK
See also
bool()
-
filterRectToSourceCrs
()¶
-
geometryToDestinationCrs
()¶
-
nextFeatureFilterExpression
()¶
-
nextFeatureFilterFids
()¶
-
prepareSimplification
()¶
-
ref
()¶
-
rewind
(self) → bool¶ Rewind to the beginning of the iterator
- Returns
bool
True
if the operation was OK