O'Reilly logo

Learning QGIS Second Edition by Anita Graser

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 custom geoprocessing scripts using Python

In Chapter 4, Spatial Analysis, we already used the existing tools in the Processing toolbox to analyze our data, but we are not limited to these tools. We can expand processing with our own scripts. The advantages of processing scripts over normal Python scripts, like the ones we saw in the previous section, are:

  • Processing automatically generates a graphical user interface for the script to configure the script's parameters
  • Processing scripts can be used in the Graphical modeler to create geoprocessing models

A good resource to learn how to write custom scripts for processing is to have a look at the existing scripts in the Scripts section in the Processing Toolbox. As the following screenshot ...

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