Class: QgsVectorLayerFeatureIterator

class qgis.core.QgsVectorLayerFeatureIterator(source: QgsVectorLayerFeatureSource, ownSource: bool, request: QgsFeatureRequest)

Bases: qgis._core.QgsAbstractFeatureIteratorFromSourceQgsVectorLayerFeatureSourceBase

Enums

Methods

close

end of iterating: free the resources / lock

deref

fetchFeature

fetch next feature, return true on success

filterRectToSourceCrs

geometryToDestinationCrs

isValid

iteratorClosed

nextFeatureFilterExpression

Overrides default method as we only need to filter features in the edit buffer while for others filtering is left to the provider implementation.

nextFeatureFilterFids

prepareSimplification

Setup the simplification of geometries to fetch using the specified simplify method

ref

rewind

reset the iterator to the starting position

Signals

Attributes

class FetchJoinInfo

Bases: sip.wrapper

QgsVectorLayerFeatureIterator.FetchJoinInfo(QgsVectorLayerFeatureIterator.FetchJoinInfo)

addJoinedAttributesCached(self, f: QgsFeature, joinValue: Any)
addJoinedAttributesDirect(self, f: QgsFeature, joinValue: Any)
attributes
indexOffset
joinField
joinInfo
joinLayer
targetField
close(self) → bool

end of iterating: free the resources / lock

deref()
fetchFeature(self, feature: QgsFeature) → bool

fetch next feature, return true on success

filterRectToSourceCrs()
geometryToDestinationCrs()
isValid(self) → bool
iteratorClosed()
nextFeatureFilterExpression(self, f: QgsFeature) → bool

Overrides default method as we only need to filter features in the edit buffer while for others filtering is left to the provider implementation.

nextFeatureFilterFids()
prepareSimplification(self, simplifyMethod: QgsSimplifyMethod) → bool

Setup the simplification of geometries to fetch using the specified simplify method

ref()
rewind(self) → bool

reset the iterator to the starting position