Skip to content
PeterBontinck edited this page Jun 25, 2018 · 11 revisions

Welcome to the QGIS-Layergroup-Filter wiki!

Sample Project:

Feel free to use sample project and data to play around.

screenSnip

How to set a filter to a layer group in QGIS:

  • Create a xml file to discribe the wanted filter settings for your Qgis Project. (see example)
  • Load the xml file to the project by using the "..." button.
  • Select a preset as described in the xml from the "filter preset" combobox.
  • Select the layer group. (all sub groups are also included)
  • Type or select the filter value. (click button to get the possible values)
  • Click "Replace Filters" to delete al current filters of the selected group and replace them with a preset.
  • Click "Add Filters" to keep al current filters of the selected group and add a constraint using a "AND" relation.

How to delete all filters of a layer group in QGIS:

  • Select the layer group. (all sub groups are also included)
  • Click "Clear Filters"

How to use a value relation between layers:

  • discribe the value relation in the XML file. (see example)
  • if a value matches multiple keys, different constraints will be set using an OR reletion.