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)
Enums
Methods
Returns the coordinate reference system for features retrieved from this source.
Returns the fields that will be available for features that are retrieved from this source.
Returns the layer id of the source layer.
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¶
-
id
(self) → str¶ Returns the layer id of the source layer.
New in version 3.4.
-
iteratorClosed
()¶
-
iteratorOpened
()¶