Subgroup: Vector

Class: QgsVectorLayerFeatureSource

class qgis.core.QgsVectorLayerFeatureSource(layer: QgsVectorLayer)

Bases: qgis._core.QgsAbstractFeatureSource

Constructor for QgsVectorLayerFeatureSource.

Parameters:layer – source layer

QgsVectorLayerFeatureSource(QgsVectorLayerFeatureSource)

Partial snapshot of vector layer’s state (only the members necessary for access to features)

Methods

crs Returns the coordinate reference system for features retrieved from this source.
fields Returns the fields that will be available for features that are retrieved from this source.
getFeatures
iteratorClosed
iteratorOpened

Signals

Attributes

crs(self) → QgsCoordinateReferenceSystem

Returns the coordinate reference system for features retrieved from this source.

New in version 3.0.

fields(self) → QgsFields

Returns the fields that will be available for features that are retrieved from this source.

New in version 3.0.

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