Class: QgsFeatureFilterProvider¶
-
class
qgis.core.
QgsFeatureFilterProvider
¶ Bases:
sip.wrapper
Abstract interface for use by classes that filter the features of a layer. A
QgsFeatureFilterProvider
provides a method for modifying aQgsFeatureRequest
in place to apply additional filters to the request.Methods
Create a clone of the feature filter provider
Add additional filters to the feature request to further restrict the features returned by the request.
-
clone
(self) → QgsFeatureFilterProvider¶ Create a clone of the feature filter provider
- Return type
- Returns
a new clone
-
filterFeatures
(self, layer: QgsVectorLayer, featureRequest: QgsFeatureRequest)¶ Add additional filters to the feature request to further restrict the features returned by the request. Derived classes must implement this method.
- Parameters
layer (QgsVectorLayer) – the layer to filter
featureRequest (QgsFeatureRequest) – the feature request to update
-