Book Image

Learn QGIS - Fourth Edition

By : Andrew Cutts, Anita Graser
Book Image

Learn QGIS - Fourth Edition

By: Andrew Cutts, Anita Graser

Overview of this book

QGIS 3.4 is the first LTR (long term release) of QGIS version 3. This is a giant leap forward for the project with tons of new features and impactful changes. Learn QGIS is fully updated for QGIS 3.4, covering its processing engine update, Python 3 de-facto coding environment, and the GeoPackage format. This book will help you get started on your QGIS journey, guiding you to develop your own processing pathway. You will explore the user interface, loading your data, editing, and then creating data. QGIS often surprises new users with its mapping capabilities; you will discover how easily you can style and create your first map. But that’s not all! In the final part of the book, you’ll learn about spatial analysis and the powerful tools in QGIS, and conclude by looking at Python processing options. By the end of the book, you will have become proficient in geospatial analysis using QGIS and Python.
Table of Contents (8 chapters)

Extending QGIS with Python

In our final chapter, we will be using Python to extend QGIS 3.4 Python is a very accessible programming language even for beginners. It is used extensively in both the open source and proprietary GIS world. QGIS 3.4 uses Python 3, whereas QGIS 2.x uses Python 2.7. Care should be taken when migrating any existing scripts, since the API has been updated. We will start with an introduction to actions and then move on to the QGIS Python Console before we go into more advanced development of custom tools for the Processing Toolbox. This will be followed by a guide on how to create your own basic plugin. The final topic that we will cover in this chapter is viewing data in 3D.

Topics covered in this chapter include the following:

  • Adding functionality using actions
    • Opening files using actions
    • Opening a web browser using actions
  • Getting to know the Python...