Automating Map Production with PyQGIS and QGIS Print Layouts
2026-10-05 , Bridge 1-Short Workshops

This hands-on workshop introduces how map production can be automated using Python/PyQGIS scripts together with QGIS print layouts. It builds on the preceding talk and focuses on practical implementation.

We start with a short introduction to print layout templates and their main elements, such as maps, legends, text labels, images, and scale bars, as well as a brief introduction to PyQGIS.

In the practical part, participants learn how to prepare a layout for automation by assigning item IDs to its elements. We will then write PyQGIS code to control and modify the print layout. Using PyQGIS, layout elements are accessed via their IDs and dynamically updated—for example by changing text, adjusting map settings, modifying legends, or inserting images. As a first step, a single layout is exported as a PDF.

A prepared example project is then introduced, containing input data (CSV), a GeoPackage, and print layout templates. Participants will extend the provided script step by step and finally run a batch export.

The focus of the workshop is on the interaction between Python/PyQGIS code and QGIS print layouts. To support this, participants work with prepared PyQGIS scripts which are extended.

Participants should have basic knowledge of QGIS and Python. Prior experience with the QGIS Python API is helpful but not required.

Isabelle Korsch is a mathematician and is working at WhereGroup in Berlin since 2022. She is mainly involved in the development of QGIS Python plugins. She is also a trainer at the FOSS Academy (https://www.foss-academy.com).