O'Reilly logo

Building Mapping Applications with QGIS by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Linking QGIS and Python

While QGIS itself is written in C++, it includes extensive support for Python programming. A Python interpreter is built in, and can be used interactively via the Python Console, or to run plugins written in Python. There is also a comprehensive API for querying and controlling the QGIS application using Python code.

There are three ways in which you can use Python to work with the QGIS system:

  • Python Console: You can open this console, which runs the interactive Python interpreter built into QGIS, allowing you to type in commands and see the results immediately.
  • Python plugin: These are Python packages designed to be run within the QGIS environment.
  • External applications: You can use the QGIS Python API in your own applications. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required