Skip to content

About

FilterMate is a Qgis plugin, an everyday companion that allows you to easily filter your vector layers

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

3,972 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FilterMate FilterMate

🧭 Explore, 🔍 filter and 📦 export vector 🗺️, raster 🏔️ and LiDAR point cloud ☁️ layers in QGIS, from one panel.

QGIS Plugin QGIS 3.22 → 4.x Tests QGIS headless Website License: GPL v3

Your feedback shapes FilterMate: how you use it · a quick review · suggest a feature · become a tester · training and services

Pick a layer, select what matters on it, and FilterMate filters every other layer of the project by its relation to that selection: buildings near main roads, parcels on steep slopes, LiDAR points beneath rooftops, a DTM clipped around a church. The filters stay on the existing project layers, keep their styles, can be undone, saved as favorites, exported, and replayed from Processing or a script. Or ask for them in a sentence: the AGENT section filters, selects and exports from a typed or dictated request, with the model you choose.

FilterMate panel with a vector layer: a building chosen, then the layers to filter, a LiDAR point cloud and a DTM among them   FilterMate panel with a raster layer: band, value range and histogram, then the layers to filter   FilterMate panel with a LiDAR point cloud: classes and attribute ranges

The panel follows the current layer: a building of a vector layer filtering a point cloud and a DTM, a raster with its histogram, a LiDAR point cloud.

AGENT: two requests in a sentence, each with a filter card that gives the features kept   AGENT asks which of two road layers is meant, with choices to click   AGENT offers to set FilterMate up: look, data, what the agent may do alone

AGENT (experimental): a request in a sentence and its filters, a question with choices when the decision is yours, and the offer to set FilterMate up.

🌐 Website · 📖 User guide · 🇫🇷 Guide utilisateur · 💡 Use cases · 📥 Install from the QGIS repository


✨ New in 5.1.4

  • Four modes: Answer, Propose, Act and Auto. Answer reads without changing the project; Propose asks before each change; Act brings in data from the sources you ticked without asking, and still asks before writing files, removing layers, deleting features or running code; Auto also runs those alone and asks only for code, FilterMate settings and connectors. Auto is never a default: pick it from the mode menu. Protected layers and tools set to Never are refused in every mode. 5.1.3 settings are migrated on first start.
  • Permission cards in plain words. Each card says what this call does, not what its tool can do, and answers from the keyboard (focus on No, Y/N). Yes, and… offers Allow for this conversation, Allow the rest of this request and Never ask again. A call that would fail for sure is refused before any question.
  • The agent looks at the map, then proposes. Click the activity mark at rest: the agent reads the map and offers two to four actions. After a request that changed the map, up to three buttons suggest a better CRS, a layer order, labels or distinct colours. Nothing changes until you click.
  • Layers arrive placed and styled. Points over lines over polygons over rasters, basemaps at the bottom, with a readable style; the agent knows the order and the style of each layer when it answers.
  • Web layers sized to the work area. Every tool that takes an area uses the place you name, else the work area, automatic (the project's data, else the map view) or set from ⋯ → Area. A WFS layer is counted first: up to 10,000 features it is copied, above that it stays on its service, cut to the area, and values, previews and statistics read that area. No duplicate layers of the same service. OpenStreetMap is the default for buildings, roads and water when it is ticked beside the IGN. The French cadastre comes as vectors (Parcellaire Express, or the Etalab file of a whole commune).
  • Agent data in QGIS's temporary folder. Layers the agent downloads or makes are files in a project folder of QGIS's temporary folder instead of RAM: the dock filters them like any file and QGIS marks them as temporary. ⋯ → Save project and layers… keeps them beside the project; closing the project empties the folder.
  • Menus, settings and History redone. Under the input: the mode in words, the reasoning effort, History, New and ⋯. Settings in five tabs (Provider, Sources, Permissions, Memory & history, Integrations). History is a page of the AGENT section, with a Recipes tab. A first-use card switches on OpenStreetMap data, OpenStreetMap tiles and the Photon place search in one click. /ideas, /styles, /layout, /themes and /brainstorm in the input.
  • A clearer conversation. One look for suggestions, change cards, questions, settings, memory and chart cards, with buttons readable in the dark theme. The line after a request reads Took 14 s · 12,740 tokens. The accent follows QGIS's theme or the system's by default, or FilterMate's or your own color (Settings → Provider), adjusted to stay readable. The activity mark moves smoothly between states, and the menus of the dock open as bubbles; the reasoning-effort chip shows its level.
  • Lighter requests. FilterMate offers the tools and skills a request needs from its words, the project and the mode before the model asks for them, and the skill list is shorter: fewer round trips and smaller requests. A slow local Ollama model is given up to 180 s.
  • Fixes. Two QGIS crashes of 5.1.3: a few seconds after the dock opened (QGIS 3.22, 3.28 and builds with QtWebKit), and after a layer on its local copy was moved in the Layers panel. Agent sliders and boxes keep the filter already on their layer. $area and $length in Processing runs are measured in metres. A cross filter whose source holds invalid polygons works. Undo and Redo also restore favorites and selections, and an agent filter can be undone from the action bar once AGENT is folded. FILTERING shows the cross filter the agent made.
  • Safer and steadier (audit of 2026-11-30). A No on a permission card stays a No, whatever is allowed afterwards. An algorithm that runs outside QGIS (GDAL, GRASS, SAGA, a script) is given numbers, flags and simple names only, never a text a command line would read. The extent of a place is read in degrees on a map in Lambert 93 or Web Mercator. The agent panel no longer freezes on a long conversation. A Processing run measured in metres can be stopped. Undo from the dock takes the right turn of the agent and says what it did.
  • Also new. A large local copy asked from the chat is made in pieces instead of refused; a recipe can be run from the chat; a cross filter toward a raster or a point cloud says what it keeps, in pixels or points.

See the 5.1.4 release notes and the agent documentation for details.

⚙️ How it works

The panel has five sections in two stacks, one section open at a time in each: 🤖 AGENT and 🧭 EXPLORING above the splitter handle, 🔍 FILTERING, 📦 EXPORTING and 🔧 CONFIGURATION below.

Section What you do there
🤖 AGENT (experimental) Type or dictate a request: "buildings above 1200 m in the selected commune". The agent reads the project, filters, selects, zooms, styles and labels layers, edits features (in the edit buffer: you save them), makes print layouts, sets the CRS of the project, brings in the elevation, the OpenStreetMap features, the population or the natural risks (France) of an area, adds web basemaps and open data, runs compatible Processing algorithms and models, draws objects with SAM and exports; each step can be undone. It also organizes the layer tree, makes sliders and charts under the conversation, helps set FilterMate up, asks with choices to click when the decision is yours, and keeps a request as a recipe you run again without calling the chat model. See docs/AGENT_MODE.md.
🧭 EXPLORING Select on the current layer. Vector: one feature, several, or an expression. Raster: a band, a pixel value (picked on the map), a value range on a live histogram, classes of a paletted raster, a raster calculator expression. Point cloud: ASPRS / LiDAR HD classes, Z, intensity and return ranges, chained attribute conditions, height above a DTM.
🔍 FILTERING Choose the layers to filter and how they relate to the selection: geometric predicates (intersects, within, disjoint…), a buffer, AND / OR with existing filters, a minimum coverage for polygons.
📦 EXPORTING Write the filtered layers as they are: vector formats, GeoTIFF / COG for rasters, LAZ / LAS / COPC / GPKG / CSV for point clouds, or a GeoPackage with an embedded QGIS project.
🔧 CONFIGURATION Backends, theme, layer kinds, cache and other options, from the panel.

Nine combinations. One panel. Every kind of layer can be the source or a target. Each cell links to a detailed use case:

Source ↓ / Target → 🗺️ Vector 🏔️ Raster ☁️ Point cloud
🗺️ Vector (features) Buildings near main roads DTM around the church Point cloud around the church
🏔️ Raster (value range, classes…) Parcels on steep slopes NDVI mask on an RGB orthophoto LiDAR points beneath rooftops
☁️ Point cloud (classes, ranges…) Building heights measured by LiDAR DTM beneath ground points High vegetation near power lines

Filtered layers keep their id, style and place in the layer tree. Unfilter, Undo / Redo and unloading the plugin put the original source back, and project files are always saved with the original sources.

✨ Features

  • ⚡ Fast on large data. Filters run as SQL on PostgreSQL / PostGIS, SpatiaLite and GeoPackage (spatial index used, no reload), with an OGR path for everything else. In the documented Saint-Gaudens run, 12 layers from a 2.9 GB department-wide GeoPackage were filtered in under a second. Timings depend on the data, hardware and cache.
  • 🌐 Web services and remote files (WFS, OGC API Features, ArcGIS, WMS / WMTS / XYZ, WCS, vector tiles, remote COPC / EPT): filtered and explored with bounded, cancellable reads, never on the main thread, and with an explicit refusal rather than a silently partial result. A WMS, a WMTS or a tile basemap can itself be a layer to filter: captured over the area, then cut like a local raster.
  • 🤖 AGENT (experimental): a chat in the panel that drives FilterMate and QGIS from a sentence, Processing algorithms included, with Claude, Mistral, OpenAI or any compatible server, a local Ollama model (the settings help to install it and to download a model). Filters apply at once and each step can be undone; exports and added or removed layers are confirmed in the thread, without stopping QGIS, and its history keeps the requests of every project. Choose Answer, Propose, Act or Auto; every mode follows the rules per tool and the layers it must never change. Recipes keep a request in the project and run it again without any model, or by themselves each time the edits of their source are saved. When a choice is yours it asks with choices to click; Set up FilterMate asks the main settings with a few choices, with no model at all (offered once per version, and from the menu Vector > FilterMate), and How FilterMate works tells the panel section by section; a team can give it its own skills, a SKILL.md you read and allow first. When the project has no such layer, it brings in what a request needs: the elevation of an area (a relief map with its contours in one sentence), OpenStreetMap features by tags, the population of an area, the natural risks of France. An expert mode, off by default, lets it run Python code in QGIS, shown and confirmed at each run and not undone. Optional sources: web basemaps (OpenStreetMap, Carto, IGN, Google Satellite, OpenTopoMap, Esri light/dark grey / imagery / topographic / street maps), a geocoder, the tables of a PostgreSQL connection of QGIS, open data portals, WFS, WMS and WMTS services (IGN, Géorisques), Sentinel-2 scenes, Copernicus elevation, OpenStreetMap (Overpass), a population grid, remote MCP connectors. A built-in MCP server lets Claude Code or another client on your computer use the same tools (docs/AGENT_MODE.md). CARTO now requires a personal API key; use a custom XYZ source with your key, or enable an Esri alternative in Settings > Sources > Basemaps. Hide an existing CARTO notice layer in QGIS's Layers panel before adding another background below it. The basemaps skill also finds official regional backgrounds (Brittany, Basque Country, Spain, Switzerland, Austria, Netherlands, Japan, United States), searches enabled local catalogs and reuses local raster files. See the regional source list.
  • 💾 Agent data and result links. Downloaded and generated data are files in QGIS's temporary folder until you choose where to save the project and its agent datasets. Choose the default export folder in ⋯ → Settings… → Permissions. Layer links reveal the exact layer in the tree; output actions open the file or its folder. Sources on the web open only when you click their links.
  • 🌐 Dataset and source discovery. Compare suitable sources from the local catalog, including disabled ones, then search the enabled services for actual datasets. Optional Web search returns unverified candidates for review in Sources. A recommendation does not enable a source or add a layer.
  • 🗂️ Conversation history. Archive exchanges with New conversation, then reopen them from History → Conversations. Conversations from other projects remain available for consultation without changing the current project. Past actions are never replayed when opening a conversation.
  • 🧩 Processing models and providers. The agent searches installed providers and registered models, describes their parameters and steps, and runs compatible treatments on project layers.
  • 🎙️ Microphone dictation. Transcribe through a local compatible service, OpenAI or Mistral. Choose the device, service and language in ⋯ → Settings… → Integrations → Set up the microphone…. Test the microphone level and a short transcription there before saving. Click again to transcribe, or press Esc to discard or cancel. Audio stays in memory; recognized text is inserted in the editable draft. You press Send yourself.
  • 🎯 Pipettes on the map: similar pixels, the clicked object or every similar object on a raster, a value condition on a point cloud attribute.
  • 🧩 Objects drawn by SAM (experimental): on an orthophoto, a click or a box and the SAM 2.1 model draws the object, locally on your CPU; similar objects are proposed, to keep or reject. The objects filter other layers, become a polygon layer, or are drawn from a layer of points or footprints in Processing (docs/SEGMENTATION.md).
  • ✏️ Zone on the map: draw a rectangle, polygon, freehand shape or circle; on a vector layer it selects the features it touches, on a raster it keeps the pixels inside it, on a point cloud it cuts the targets.
  • 🎨 Raster bands: tick the bands that drive the pipette and the value range, and display one in grey or up to three as a colour composite (false colour included).
  • ↩️ Undo / Redo of every filter, per layer, and the history of the project in one panel, where you go back to before any step. Compare shows the map before and after the last filter, or a state you pinned, on each side of a line across the map.
  • ⭐ Favorites: save a filter with its layers and settings, replay it in a click; favorites and the settings of each layer are saved in the project, so they travel with it. Share them with a team through a git repository (docs/favorites_sharing/USER_GUIDE.md).
  • ⚙️ Automation: ten Processing algorithms and four ready-made models, qgis_process, a Python API for scripts and other plugins, an optional REST API, and two MCP servers for AI assistants: one built into the plugin, one over stdio (docs/AUTOMATION.md).
  • 🪟 Sections as panels of QGIS: a rail lists the sections of the panel (or headers, one above the other, if you prefer). Any section leaves the panel for a panel of QGIS, alone or grouped with others, by a right-click on its chip or by dragging it, and comes back the same way; QGIS puts each panel back where you left it. EXPLORING in its own panel shows its own list to choose the current layer. The buttons can sit under each section, and FILTERING or EXPORTING can be turned off. Nothing moves unless you ask.
  • 🔧 Configuration: search a setting by name; display profile automatic from the screen or chosen (compact, normal, hidpi).
  • 🧩 QGIS 3.22 to 4.x, Qt5 and Qt6, 🌗 light and dark themes, 🌍 34 languages.

📥 Installation

In QGIS: Plugins → Manage and Install Plugins, search for FilterMate, then Install Plugin. The FilterMate button appears in the plugin toolbar.

Manual install: download a zip from GitHub Releases and use Plugins → Manage and Install Plugins → Install from ZIP.

🖥️ Without QGIS: the standalone application

The same dock, unchanged, in a window of its own (a map, a layer panel, the QGIS libraries as the engine):

# macOS, Linux
curl -LsSf https://raw.githubusercontent.com/imagodata/filter_mate/main/standalone/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/imagodata/filter_mate/main/standalone/install.ps1 | iex"
# or, with pip or pipx already there, in any Python 3.9+
pipx install https://github.com/imagodata/filter_mate/archive/refs/heads/main.zip

filtermate parcels.gpkg dem.tif

filtermate uses the QGIS of the machine (3.22 to 4.x, found by itself), or installs a runtime of its own without administrator rights (filtermate setup). A Docker image serves it in a browser. See docs/STANDALONE.md.

📋 Requirements

🟢 QGIS 3.22 or later, QGIS 4.x included. Point cloud layers need QGIS 3.26+.
🐘 PostgreSQL / PostGIS (optional) psycopg2, shipped with most QGIS installs; otherwise pip install psycopg2-binary in the QGIS Python.
☁️ PDAL (optional) PDAL 2.4+ (pdal command, shipped with QGIS on Windows) for the height above a DTM and direct COPC writing. Without it, point clouds are clipped by the QGIS exporter.
🌐 REST API (optional) pip install -r requirements-api.txt (FastAPI, Uvicorn, Pydantic).
🧩 SAM (optional) onnxruntime, installed into your QGIS profile after one confirmation, and the model (62 MB), downloaded on request.
🤖 AGENT An API key of a provider (kept in the QGIS authentication database), or a local Ollama model. No provider SDK is required.
🧩 Agent Processing providers (optional) The provider and its dependencies must be installed and active in QGIS. Agent runs that require files need QGIS 3.32+ to keep working files in the chosen project-data folder.
🎙️ Microphone dictation (optional) Qt Multimedia for the Qt version used by QGIS, plus a running local OpenAI-compatible transcription server or an OpenAI/Mistral API key. The speech service is configured separately from the chat model.

🤖 Automation in two lines

from qgis.utils import plugins

api = plugins["filter_mate"].get_public_api()
api.cross_filter("mnt", ["parcelle", "lhd"], coverage_min=50,
                 raster_selection={"band": 1, "mode": "range", "minimum": 1200, "maximum": 1300})

The same operation is available as the filtermate:cross_filter_from_raster Processing algorithm, from qgis_process, and as POST /filters/cross on the REST API. See docs/AUTOMATION.md.

📚 Documentation

📖 User guide · Guide utilisateur Step by step: first filter, exploring, predicates and buffers, rasters and point clouds, favorites, export, backends, configuration.
💡 Use cases · Cas d'usage Sixteen business questions covering all nine combinations: twelve QGIS recordings and four illustrated recipes, in English and French.
🤖 docs/AGENT_MODE.md The AGENT section: providers, tools, modes and permissions, undo, recipes, widgets, sources, the built-in MCP server.
🔒 docs/AI_AND_DATA.md AI and data: what the AGENT sends, to whom and when; no account, no telemetry.
🧩 docs/SEGMENTATION.md Objects drawn by SAM: set up, use, Processing, what it is good at, with measured results.
🖥️ docs/STANDALONE.md FilterMate without the QGIS application: the filtermate command, its engine, the browser image.
⚙️ docs/AUTOMATION.md Processing algorithms and models, qgis_process, Python API, REST API, MCP servers.
⭐ docs/favorites_sharing/ Sharing favorites through git repositories.
🏗️ docs/ARCHITECTURE.md · CONTRIBUTING.md Source tree, code rules, tests and releases, for contributors.
📝 CHANGELOG.md Release notes.

🛠️ Development

pip install -r requirements-test.txt
python -m pytest tests/ -o "addopts="     # unit tests, no QGIS needed (qgis.* is mocked)

The scripts of tests/qgis_headless/ load the plugin in the official QGIS Docker images (3.22 → nightly) and drive the dock with its GUI. Start with docs/ARCHITECTURE.md for a map of the source tree and CONTRIBUTING.md for the code rules (Qt5 / Qt6 guards, translations, zip build, pull requests).

🐛 Bugs and 💬 ideas: GitHub issues · 💬 Questions and news: Discord.

📄 License

GNU General Public License v3.0, see LICENSE; the name and the logo are covered by TRADEMARKS.md. Developed by imagodata · simon.ducournau+filter_mate@gmail.com. Map data in the screenshots: BD TOPO® and LiDAR HD © IGN, Licence Ouverte 2.0.

About

FilterMate is a Qgis plugin, an everyday companion that allows you to easily filter your vector layers

Topics

Resources

Contributing

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages