Class: QgsVectorLayerFeatureSource¶
Partial snapshot of vector layer’s state (only the members necessary for access to features).
Class Hierarchy¶
Base classes¶
Base class that can be used for any class that is capable of returning features. |
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. |
- class qgis.core.QgsVectorLayerFeatureSource[source]¶
Bases:
QgsAbstractFeatureSource
- __init__(layer: QgsVectorLayer | None)
Constructor for QgsVectorLayerFeatureSource.
- Parameters:
layer (Optional[QgsVectorLayer]) – source layer
- crs(self) QgsCoordinateReferenceSystem [source]¶
Returns the coordinate reference system for features retrieved from this source.
- Return type: