The PyQGIS Programmer's Guide

Extending QGIS 3 with Python 3

by Gary Sherman

PDF $19.95
250 pages
ISBN 978-0998547725
Published (Preview updated 2017-12-07)

Welcome to the world of PyQGIS, the blending of Quantum GIS and Python to extend and enhance your open source GIS toolbox. With PyQGIS you can write scripts and plugins to implement new features and perform automated tasks.

This book is updated to work with the next generation of QGIS---version 3.x. After a brief introduction to Python 3, you’ll learn how to understand the QGIS Application Programmer Interface (API), write scripts, and build a plugin.

This book is designed to allow you to work through the examples as you go along. At the end of each chapter you will find a set of exercises you can do to enhance your learning experience.

The PyQGIS Programmer's Guide is compatible with the version 3.0 API released with QGIS 3.x.


The book is available as a Preview Release now. The final version is slated for publication at the time QGIS 3.0 is released.

About the Preview

This preview allows you to get an early look at the book at a substantial discount.

The book is nearly content complete, however has not had a complete technical review. While QGIS 3.0 is in the final stages of development, the API is still subject to change.

The text has not been edited for grammar, punctuation, and layout---errors or omissions may be present.

If you purchase the PDF, you will receive the full electronic version at no additional cost once the book is complete.

Specific questions or concerns should be directed to: gsherman@locatepress.com.

For discussion of PyQGIS 3 features in this book, and to provide feedback, please use: http://locatepress.com/discussion/ppg3


  1. Introduction
  2. Python Basics
  3. Setting Up Your Development Tools
  4. The QGIS/Python Ecosystem
  5. Changes from Python 2 to 3
  6. Navigating the QGIS API
  7. Using the Console
  8. Running Scripts
  9. Tips and Techniques
  10. Extending the API
  11. Writing Plugins
  12. Creating a Development Workflow
  13. Converting Code to QGIS 3
  14. Writing a Standalone Application
  15. Answers to Exercises
  16. Appendix A: Code Listings

This is a Preview Version of the book. It may not be content complete and hasn't been thoroughly reviewed or edited. If you purchase the Preview, you'll receive further updates and the final PDF at no additonal cost.