Class: QgsAbstractFeatureSource

class qgis.core.QgsAbstractFeatureSource

Bases: sip.wrapper

Base class that can be used for any class that is capable of returning features

New in version 2.4: Methods

getFeatures Gets an iterator for features matching the specified request
iteratorClosed
iteratorOpened

Signals

Attributes

getFeatures(self, request: QgsFeatureRequest = QgsFeatureRequest()) → QgsFeatureIterator

Gets an iterator for features matching the specified request

Parameters:request – The request
Returns:A feature iterator
iteratorClosed(self, it: QgsAbstractFeatureIterator)
iteratorOpened(self, it: QgsAbstractFeatureIterator)