Proud Sponsor of:

The PyQGIS Programmer's Guide

Extending QGIS with Python

by Gary Sherman

PDF $24.99
200 pages
ISBN 978-0989421720
Published 2014-02-27

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 will guide you in getting started with PyQGIS. After a brief introduction to Python, 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 2.0 API released with QGIS 2.0.

Availability

The book is available now on Amazon.

The PyQGIS Programmer's Guide ($31.99 US) is available now for bulk orders of five or more copies. Orders of ten or more will receive a 20% discount. To place a bulk order, email gsherman@locatepress.com for details.

If you purchased the Preview PDF, you can get final version by going to My Books and regenerating your book.

Code and Data

Download the code and data for the book.

Sample Chapter

Chapter 6 – Using the Console (PDF, 542 KB)

Contents

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