Class: QgsCachedFeatureWriterIterator

class qgis.core.QgsCachedFeatureWriterIterator(vlCache: QgsVectorLayerCache, featureRequest: QgsFeatureRequest)

Bases: QgsAbstractFeatureIterator

This constructor creates a feature iterator, which queries the backend and caches retrieved features.

Parameters

QgsCachedFeatureWriterIterator(QgsCachedFeatureWriterIterator)

Uses another iterator as backend and writes features to the cache

Methods

close

Close this iterator.

deref

fetchFeature

Implementation for fetching a feature.

filterRectToSourceCrs

geometryToDestinationCrs

nextFeatureFilterExpression

nextFeatureFilterFids

prepareSimplification

ref

rewind

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()
prepareSimplification()
ref()
rewind(self) → bool

Rewind to the beginning of the iterator

Return type

bool

Returns

bool true if the operation was OK