QGIS Automation

Automate QGIS with PyQGIS and Processing models.

QGIS holds hundreds of algorithms you already trust from the toolbox — and every one of them can be called from Python. These guides set up a Python environment that can import qgis, run Processing algorithms with the right parameter dictionary, loop them over whole folders, wrap your own code as a first-class algorithm, export styled map layouts, and run the whole thing headless on a server with no window ever opening.

25 Steps in this path

The full path, in order

25 guides: the concepts underneath the work, then each task, then the errors that task produces. Work down, or jump to the step you need.

  1. The QGIS Processing Framework Explained qgis processing framework explained 🧭 Concept
  2. QGIS Data Providers Explained: How QGIS Reads Any Data Source qgis data provider explained 🧭 Concept
  3. The PyQGIS API Map: Which Class Does What pyqgis classes overview 🧭 Concept
  4. How QGIS Styling Works: Renderers, Symbols and Rules qgis renderer symbol explained 🧭 Concept
  5. Expressions, Scripts, Models or Plugins? QGIS Extension Points Explained qgis plugin vs script vs model 🧭 Concept
  6. How to Run QGIS Processing Algorithms from Python qgis processing algorithm python ⚙️ How-To
  7. How to Run a PyQGIS Script Headless Without Opening QGIS run pyqgis headless ⚙️ How-To
  8. How to Batch Process Layers in QGIS with PyQGIS batch process layers pyqgis ⚙️ How-To
  9. How to Build a QGIS Processing Model and Run It from Python qgis processing model python ⚙️ How-To
  10. How to Write a Custom QGIS Processing Script Algorithm in Python qgis processing script algorithm ⚙️ How-To
  11. How to Style Layers and Export Map Layouts from PyQGIS qgis export layout python ⚙️ How-To
  12. How to Move Data Between QGIS and GeoPandas qgis geopandas data exchange ⚙️ How-To
  13. PyQGIS vs GeoPandas: Which to Use for GIS Automation pyqgis vs geopandas 🧭 Concept
  14. How to Run Field Calculator Expressions from PyQGIS pyqgis field calculator expression ⚙️ How-To
  15. How to Add, Edit and Delete Features with PyQGIS pyqgis edit features ⚙️ How-To
  16. How to Build and Save a QGIS Project File from Python create qgis project python ⚙️ How-To
  17. How to Load and Write PostGIS Layers from PyQGIS pyqgis postgis layer ⚙️ How-To
  18. How to Automate QGIS from the Command Line with qgis_process qgis_process command line ⚙️ How-To
  19. How to Fix "ModuleNotFoundError: No module named 'qgis'" no module named qgis 🔧 Fix
  20. PyQGIS Script Crashes with a Segmentation Fault: How to Fix It pyqgis segmentation fault 🔧 Fix
  21. QGIS Processing "Algorithm Not Found" Error in Python: How to Fix It qgis algorithm not found 🔧 Fix
  22. PyQGIS Layer Fails to Load (isValid() Returns False): How to Fix It pyqgis layer is not valid 🔧 Fix
  23. qt.qpa.plugin: Could Not Load the Qt Platform Plugin xcb in PyQGIS qt platform plugin xcb error 🔧 Fix
  24. PyQGIS Processing Output Is Empty: How to Fix It pyqgis processing empty output 🔧 Fix

Topics this path covers

A path is a route; a topic is everything the site has on a subject. Open a topic to see the guides this path skips.

Other ways in