O'Reilly logo

Building Mapping Applications with QGIS by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the application

Our application is going to be a standalone Python program built using PyQt and the PyQGIS library. Taking the Lex application we implemented in Chapter 5, Using QGIS in an External Application, as a starting point, let's see how we can organize the source files for the ForestTrails system. We'll start with the following basic structure:

Creating the application

This is very similar to the structure we used for the Lex application, so most of this should be familiar to you. The main difference is that we're using two subdirectories to hold additional files. Let's take a look at what each of these files and directories will be used for:

  • constants.py ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required