Building Mapping Applications with QGIS

Create your own sophisticated applications to analyze and display geospatial information using QGIS and Python

Building Mapping Applications with QGIS

Learning
Erik Westra

2 customer reviews
Create your own sophisticated applications to analyze and display geospatial information using QGIS and Python
$26.99
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook
Preview in Mapt

Book Details

ISBN 139781783984664
Paperback264 pages

Book Description

QGIS is one of the premiere open source Geographical Information Systems. While developing Python geospatial applications can be challenging, QGIS simplifies the process by combining the necessary geoprocessing libraries with a sophisticated user interface, all of which can be directly controlled using Python code.

Starting with an introduction to QGIS and how to use the built-in QGIS Python Console, we will teach you how to write Python code that makes use of the geospatial capabilities of QGIS. Building on this, you will ultimately learn how to create your own sophisticated standalone mapping applications built on top of QGIS. You will learn how to use the Python Console as a window into the QGIS programming environment, and then use that environment to create your own Python scripts and plugins to customize QGIS. As your knowledge of the PyQGIS library grows, you will use it to perform a variety of real-world geospatial programming tasks, culminating in the creation of your own complex standalone applications to load, analyze, and display geospatial data.

Table of Contents

Chapter 1: Getting Started with QGIS
About QGIS
Linking QGIS and Python
Summary
Chapter 2: The QGIS Python Console
Using the console
Working with geospatial data in the console
Scripting the QGIS user interface
Summary
Chapter 3: Learning the QGIS Python API
About the QGIS Python APIs
Deciphering the C++ documentation
Organizing the QGIS Python libraries
Using the PyQGIS library
Summary
Chapter 4: Creating QGIS Plugins
Getting ready
Understanding the QGIS plugin architecture
Creating a simple plugin
The plugin development process
Writing a useful plugin
Possibilities and limitations of plugins
Summary
Chapter 5: Using QGIS in an External Application
Introducing Lex
Getting the data
Designing the application
Creating the application's framework
Adding the user interface
Connecting the actions
Creating the map canvas
Labeling the points
Filtering the landmarks
Implementing the zoom tool
Implementing the pan tool
Implementing the explore mode
Further improvements and enhancements
Summary
Chapter 6: Mastering the QGIS Python API
Working with symbol layers
Combining symbol layers
Implementing symbol layers in Python
Implementing renderers in Python
Working with custom map layers
Creating custom map canvas items
Using memory-based layers
Summary
Chapter 7: Selecting and Editing Features in a PyQGIS Application
Working with selections
Using the layer editing mode
Adding Points
Editing Points
Deleting Points and other features
Adding lines and polygons
Editing lines and polygons
Summary
Chapter 8: Building a Complete Mapping Application using Python and QGIS
Introducing ForestTrails
Designing the ForestTrails application
Creating the application
Obtaining the basemap
Defining the map layers
Defining the map renderers
The Pan Tool
Implementing the track editing mode
Summary
Chapter 9: Completing the ForestTrails Application
The Add Track map tool
Testing the application
Vertex snapping
The Edit Track map tool
The Delete Track map tool
The Get Info map tool
The Set Start Point and Set End Point actions
The Find Shortest Path action
Adjusting the toolbar actions
Suggested improvements
Summary

What You Will Learn

  • Use the Python Console to explore and control QGIS
  • Perform geospatial development tasks using the PyQGIS Python library
  • Create useful geospatial applications implemented as QGIS Python plugins
  • Use QGIS as a standalone geoprocessing library within your Python programs
  • Build complex interactive map-based GUIs within your own Python programs
  • Understand how Python scripting can be used to customize the QGIS system
  • Utilize the true potential of Python and QGIS to create your own complete mapping applications

Authors

Table of Contents

Chapter 1: Getting Started with QGIS
About QGIS
Linking QGIS and Python
Summary
Chapter 2: The QGIS Python Console
Using the console
Working with geospatial data in the console
Scripting the QGIS user interface
Summary
Chapter 3: Learning the QGIS Python API
About the QGIS Python APIs
Deciphering the C++ documentation
Organizing the QGIS Python libraries
Using the PyQGIS library
Summary
Chapter 4: Creating QGIS Plugins
Getting ready
Understanding the QGIS plugin architecture
Creating a simple plugin
The plugin development process
Writing a useful plugin
Possibilities and limitations of plugins
Summary
Chapter 5: Using QGIS in an External Application
Introducing Lex
Getting the data
Designing the application
Creating the application's framework
Adding the user interface
Connecting the actions
Creating the map canvas
Labeling the points
Filtering the landmarks
Implementing the zoom tool
Implementing the pan tool
Implementing the explore mode
Further improvements and enhancements
Summary
Chapter 6: Mastering the QGIS Python API
Working with symbol layers
Combining symbol layers
Implementing symbol layers in Python
Implementing renderers in Python
Working with custom map layers
Creating custom map canvas items
Using memory-based layers
Summary
Chapter 7: Selecting and Editing Features in a PyQGIS Application
Working with selections
Using the layer editing mode
Adding Points
Editing Points
Deleting Points and other features
Adding lines and polygons
Editing lines and polygons
Summary
Chapter 8: Building a Complete Mapping Application using Python and QGIS
Introducing ForestTrails
Designing the ForestTrails application
Creating the application
Obtaining the basemap
Defining the map layers
Defining the map renderers
The Pan Tool
Implementing the track editing mode
Summary
Chapter 9: Completing the ForestTrails Application
The Add Track map tool
Testing the application
Vertex snapping
The Edit Track map tool
The Delete Track map tool
The Get Info map tool
The Set Start Point and Set End Point actions
The Find Shortest Path action
Adjusting the toolbar actions
Suggested improvements
Summary

Book Details

ISBN 139781783984664
Paperback264 pages
Read More
From 2 reviews

Read More Reviews