Skip to main content
Skip to main content

Quick Start

Get started with FilterMate in 5 minutes! This guide covers the essential workflow.

Version 2.3.0

This guide is updated for FilterMate v2.3.0 with intelligent Undo/Redo and automatic filter preservation.

Step 1: Open FilterMate​

  1. In QGIS, load a vector layer (any format: Shapefile, GeoPackage, PostGIS, etc.)
quickstart-1

QGIS with a vector layer loaded and ready for filtering

  1. Click the FilterMate icon in the toolbar, or go to Plugins β†’ FilterMate
install-4

Opening FilterMate from the toolbar

  1. The FilterMate dockable panel will appear (auto-activates when layers are added!)
quickstart-3

FilterMate panel docked on the right side of QGIS

First Time?

FilterMate will automatically detect your layer type and select the optimal backend (PostgreSQL, Spatialite, or OGR). For geographic CRS (EPSG:4326), metric operations are automatically converted to EPSG:3857 for accuracy.

Step 2: Select Your Layer​

  1. From the Layer Selection dropdown at the top of the panel
  2. Choose the layer you want to filter
  3. FilterMate will load layer-specific settings and display relevant fields

Layer selected with filter expression ready to apply

Step 3: Explore and Select Features​

FilterMate offers multiple selection methods in the Exploring section:

Single Selection​

Use the Feature Picker widget to select individual features by clicking on the map or choosing from a dropdown.

Multiple Selection​

Expand the Multiple Selection group to select multiple features at once using checkboxes.

Custom Expression​

Expand the Custom Expression group to create complex QGIS expressions for filtering:

"population" > 10000 AND "type" = 'residential'

Step 4: Apply Filters​

Filtering Options​

In the Filtering section, configure your filter:

  1. Layers to Filter: Select which layers will be filtered (source + remote layers)
  2. Combine Operator: Choose how new filters interact with existing ones:
    • AND (default): Combines filters (intersection)
    • OR: Union of filters
    • AND NOT: Exclusion filter
  3. Geometric Predicates: Select spatial relationships (intersects, within, contains, etc.)
  4. Buffer: Add a distance buffer to your geometric filter

Apply the Filter​

Click the Filter button (funnel icon) in the action bar. The filter is applied to all selected layers.

Automatic Filter Preservation ⭐ NEW in v2.3.0

FilterMate now automatically preserves existing filters! When you apply a new filter, it's combined with previous filters using the selected operator (AND by default). No more lost filters when switching between attribute and geometric filtering.

Backend Selection

FilterMate automatically uses the best backend for your data:

  • PostgreSQL: For PostGIS layers (fastest, requires psycopg2)
  • Spatialite: For Spatialite databases
  • OGR: For Shapefiles, GeoPackage, etc.

Step 5: Review Results​

After applying the filter:

  • Filtered features are displayed on the map
  • The feature count updates in the layer list
  • Undo/Redo buttons become active in the action bar

Step 6: Undo/Redo Filters​

Intelligent Undo/Redo ⭐ NEW in v2.3.0

FilterMate v2.3.0 features context-aware undo/redo:

  • Source Layer Only: When no remote layers are selected, undo/redo affects only the source layer
  • Global Mode: When remote layers are filtered, undo/redo restores the complete state of all layers simultaneously

Use the Undo (↩️) and Redo (β†ͺ️) buttons in the action bar to navigate through your filter history. Buttons automatically enable/disable based on history availability.

Step 7: Export (Optional)​

To export filtered features:

  1. Go to the Export section
  2. Choose export format (GeoPackage, Shapefile, PostGIS, etc.)
  3. Configure CRS and other options
  4. Click Export

Common Workflows​

Progressive Filtering (Filter Preservation)​

Build up complex filters step by step:

# Step 1: Geometric filter - select by polygon
# Result: 150 features

# Step 2: Add attribute filter with AND operator
"population" > 10000
# Result: 23 features (intersection preserved!)

Multi-Layer Filtering​

  1. Select features in your source layer
  2. Enable Layers to Filter and select remote layers
  3. Apply filter - all selected layers are filtered simultaneously
  4. Use Global Undo to restore all layers at once

Reset Filters​

Click the Reset button to clear all filters from the selected layers.

Performance Tips​

For Large Datasets (>50,000 features)​

Use PostgreSQL

Install psycopg2 and use PostGIS layers for 10-50Γ— faster filtering:

pip install psycopg2-binary

For Medium Datasets (10,000-50,000 features)​

  • Spatialite backend works well
  • No additional installation needed

For Small Datasets (Less than 10,000 features)​

  • Any backend will work fine
  • OGR backend is sufficient

Configurable Feedback​

FilterMate v2.3.0 includes a configurable feedback system to reduce notification fatigue:

  • Minimal: Only critical errors (for production)
  • Normal (default): Balanced, essential info
  • Verbose: All messages (for development)

Configure in config.json β†’ APP.DOCKWIDGET.FEEDBACK_LEVEL

Next Steps​

Troubleshooting​

Filter not applying?​

Check:

  • βœ… Expression syntax is correct (use QGIS expression builder)
  • βœ… Field names are quoted correctly: "field_name"
  • βœ… Layer has features matching the criteria

Performance slow?​

Backend not detected?​

FilterMate will show which backend is being used. If PostgreSQL is not available:

  1. Check if psycopg2 is installed: import psycopg2
  2. Verify layer source is PostgreSQL/PostGIS
  3. See Installation Troubleshooting