Related Plugins and Tags

QGIS Python Plugins Repository

Multifilter Plugin icon

Plugin ID: 3327
(7) votes 

Filter multiple layers

Set the same filter on mulitple selected layers in a project

Usage
Select the layers to be filtered in the dropdown list and press the + button. Type in a filter expression in the text box and press "Filter". The same filter will be set on all layers, any existing filter will be removed.

Select a layer and press the '-' button to remove the layer from the list, this will not change the filter status for the layer.

Press 'Clear' to remove the filter on all listed layers, this will leave the layers unfiltered and not restore any earlier filter.

Press the 'C'-button to add the filter from the selected layer into the filter box. If there is any filter description in the box when this is done, the resulting filter will probably be invalid, as they should be chained together with an 'and', 'or' or similar if both parts are to be used.

Press 'Q' to run the query editor on the selected layer. That layer will be filtered and the filter expression copied to the filter edit box. Press 'Filter' to apply that filter to all selected layers.

The settings in the dialog will be stored in the active project.

The plugin is not checking the filter in any way. At least for a layer from Postgis or temporary scratch layers, there will be an error message if a wrong field name is given, for some other types of layers, it will fail quietly and not return any data. Tip: Set the filter on one of the layers using the normal filtering dialog and copy the filter. A layer that has no items left when filtere will be marked in orange. Any layers on which the filter is detected to fail will be marked in red.

The list is just the names of the layers as when they are added. If the layer name is changed later on, this will not be reflected. To update this, remove and re-add the layer or close and reopen the project. The filtering is based on the layer id and will work with the original layer.

If a layer is not found when filtering, it will get marked with a gray background

Author
Morten Sickel
Maintainer
mortensickel
Tags
vectorfilter
Plugin home page
http://github.com/sickel/multi_filter
Tracker
Browse and report bugs
Code repository
http://github.com/sickel/multi_filter
Latest stable version
1.0
Plugin ID
3327
Version Experimental Min QGIS version Max QGIS version Downloads Uploaded by Date
1.0 no 3.0.0 3.99.0 996 mortensickel 2024-04-15T19:55:24.113996+00:00
0.9 no 3.0.0 3.99.0 386 mortensickel 2024-03-27T22:02:59.895224+00:00
0.5 no 3.0.0 3.99.0 385 mortensickel 2024-03-27T06:49:02.793369+00:00

Sustaining Members