Python - PyQGIS

2 days 08:30–16:00 Next date: 01.02.2027 Online oder Präsenz Course language: German
Über die Schulung

The dynamic and object-oriented programming language Python has become the most important programming language for automatization and customization of geographic information systems (GIS). QGIS is one of the most popular open-source GIS. Python can be used in QGIS to access spatial data and geoprocessing tools, and to create your own plugins. This course will teach you how to use the Python interface in QGIS to write custom scripts and tools. The content of this course provides a good foundation for creating plugins.

Introduction to PyQGIS

  • Introduction to the Python console
  • Working with the QGIS interface (accessing layers, windows, etc.)
  • Working with the QgsVectorLayer class (e.g. creating and loading vector data)
  • Creating a script to load all vector data from a folder
  • Reading attributes
  • Editing data: working with the data provider, creating/deleting fields, editing values
  • Querying and selecting objects
  • Exporting layers
  • Communicating with users (logs, message boxes, status bars, etc.).

Geoprocessing

  • Finding available algorithms/tools
  • Using the help and documentation
  • Running geoprocessing tools
  • Working with temporary files
  • Creating custom scripts using geoprocessing tools

Prerequisites

Leistungen & Materialien

  • certificate
  • extensive scripts, materials and links
  • exercices and training data