Chapter 1. Automating QGIS

In this chapter, we will focus on the tools needed to write Python scripts for the PyQGIS framework. We will cover the following recipes:

  • Installing QGIS 2.18 for development
  • Using the QGIS Python console for interactive control
  • Automatically starting the Python console
  • Using Python's Script Runner plugin
  • Setting up your QGIS IDE
  • Debugging QGIS Python scripts
  • Navigating the PyQGIS API
  • Creating a traditional QGIS plugin
  • Creating a Processing Toolbox plugin
  • Distributing a plugin
  • Building a standalone application
  • Storing and reading global preferences
  • Storing and reading project preferences
  • Accessing the script path from within your script

Introduction

This chapter explains how to automate QGIS using Python. In addition to setting this ...

Get QGIS Python Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.