Dynamic Layers plugin

A single project to rule them all

Etienne TRIMAILLE

QGIS UC 2025 / Norrköping

GIS Atlas

Many of you know the atlas in a layout

Based on a vector layer, iterate over every features

  • Labels
  • Map extent
  • Attribute table
QGIS UC 2025 / Norrköping

Initial state

  • Our customer Cartophyl / Presta'SCIC, based in French carribean islands Guadeloupe and Martinique
  • Land surveying about pesticids in farms, pest control

QGIS project for a given farm :

QGIS UC 2025 / Norrköping

Initial state

  • Each "farm" has its own "datastore" :
    • Postgresql schema for table, fields
    • folder on the filesystem for linked files
  • Therefore, the structure for the QGIS project is the same, except the datasource : legend, graduated rendering
QGIS UC 2025 / Norrköping

Initial state

QGIS UC 2025 / Norrköping

Initial state

  1. How to manage these "hundreds" of QGIS projects, to give to their own customers, linked to the data of their farm ?
  2. How to report one change in the "main" QGIS project and to distribute a new version ?
  3. Pan and zoom the map in these different projects

In a street of Norrköping

QGIS UC 2025 / Norrköping

Dynamic Layers plugin

QGIS UC 2025 / Norrköping

Coverage layer/variables

QGIS UC 2025 / Norrköping

Extent and project properties

QGIS UC 2025 / Norrköping

Layer properties

QGIS UC 2025 / Norrköping

And run 🪄

  • The original layer properties/expressions are saved in the background (in the custom layer properties for PyQGIS geeks here)
  • It means that we can always navigate to a different feature (and therefore, re-evaluate all QGIS expressions)
  • It changes layer datasources, with your current opened project (similar to atlas preview in a QGIS layout)
QGIS UC 2025 / Norrköping

Bulk generations of projects

  • A dynamic output path for the project can be written
  • Sub folder is supported

QGIS UC 2025 / Norrköping

Bulk generations of projects

After a few cups of coffee ☕☕

QGIS UC 2025 / Norrköping

Another example

  • Use a QGIS expression for the provider filter

QGIS UC 2025 / Norrköping

Another example

  • Use a QGIS expression for the provider filter

QGIS UC 2025 / Norrköping

Another example

  • Use a QGIS expression for the provider filter

QGIS UC 2025 / Norrköping

Actual version

  • Published on https://plugins.qgis.org
  • New version is coming soon with some small improvments
  • QGIS Processing limitations
  • Some "new" project properties and/or layer properties can be added
  • Keen to have your feedbacks
  • Open to new ideas, like maybe temporal data ?
QGIS UC 2025 / Norrköping

Lizmap Web Client

  • Tight integration, with the Lizmap configuration file
  • If the Lizmap configuration file is found on the "main" project,
    the file is copied and adapted
QGIS UC 2025 / Norrköping

Thank you for your attention !

QGIS UC 2025 / Norrköping