QgsVectorLayerFeatureSource class
Partial snapshot of vector layer's state (only the members necessary for access to features)
Contents
Base classes
- class QgsAbstractFeatureSource
- Base class that can be used for any class that is capable of returning features.
Constructors, destructors, conversion operators
- QgsVectorLayerFeatureSource(const QgsVectorLayer* layer) explicit
- Constructor for QgsVectorLayerFeatureSource.
Public functions
- auto crs() const -> QgsCoordinateReferenceSystem
- Returns the coordinate reference system for features retrieved from this source.
- auto fields() const -> QgsFields
- Returns the fields that will be available for features that are retrieved from this source.
- auto getFeatures(const QgsFeatureRequest& request = QgsFeatureRequest()) -> QgsFeatureIterator override
- Gets an iterator for features matching the specified request.
- auto id() const -> QString
- Returns the layer id of the source layer.
Function documentation
QgsVectorLayerFeatureSource:: QgsVectorLayerFeatureSource(const QgsVectorLayer* layer) explicit
Constructor for QgsVectorLayerFeatureSource.
| Parameters | |
|---|---|
| layer | source layer |
QgsCoordinateReferenceSystem QgsVectorLayerFeatureSource:: crs() const
Returns the coordinate reference system for features retrieved from this source.
QgsFeatureIterator QgsVectorLayerFeatureSource:: getFeatures(const QgsFeatureRequest& request = QgsFeatureRequest()) override
Gets an iterator for features matching the specified request.
| Parameters | |
|---|---|
| request | The request |
| Returns | A feature iterator |
QString QgsVectorLayerFeatureSource:: id() const
Returns the layer id of the source layer.