Class: QgsFeatureFilter

class qgis.server.QgsFeatureFilter

Bases: QgsFeatureFilterProvider

A feature filter provider allowing to set filter expressions on a per-layer basis.

New in version 3.0.

QgsFeatureFilter() Constructor

QgsFeatureFilter(QgsFeatureFilter)

Methods

clone

Returns a clone of the object

filterFeatures

Filter the features of the layer

layerAttributes

param layer

setFilter

Set a filter for the given layer.

clone(self)QgsFeatureFilterProvider

Returns a clone of the object

Return type

QgsFeatureFilterProvider

Returns

A clone

filterFeatures(self, layer: QgsVectorLayer, filterFeatures: QgsFeatureRequest)

Filter the features of the layer

Parameters
layerAttributes(self, layer: QgsVectorLayer, attributes: Iterable[str])List[str]
Parameters
Return type

List[str]

setFilter(self, layer: QgsVectorLayer, expression: QgsExpression)

Set a filter for the given layer.

Parameters