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)

Developing your first plugin

If you want to implement interactive tools or very specific graphical user interfaces, you will need to build a plugin. In the previous exercises, we introduced the QGIS Python API. Now we will focus on the necessary steps to get our first QGIS plugin built. The great thing about creating plugins for QGIS is that there is a plugin called Plugin Builder. Plugin Builder allows you to build the framework for a plugin. Also ensure that you install Plugin Reloader, since this is very useful for plugin development. It lets you reload your plugin without restarting QGIS every time you make changes to the code. When you have installed both plugins, your Plugins toolbar will look similar to this:

The plugin reloader

The simplest way to create plugins using Windows 10 is by using a version of QGIS installed via OSGeo4W. The plugin described here will assume...