Reader small image

You're reading from  Learn QGIS - Fourth Edition

Product typeBook
Published inNov 2018
Reading LevelBeginner
PublisherPackt
ISBN-139781788997423
Edition4th Edition
Languages
Tools
Right arrow
Authors (2):
Andrew Cutts
Andrew Cutts
author image
Andrew Cutts

Andrew Cutts holds a geography degree and a masters degree in GIS and has almost 20 years of experience in working with geospatial technology. He currently works as a freelance geospatial consultant. He has worked in local government, large multinational companies, and small and medium-sized enterprises. He has run a geospatial blog for almost 3 years and is a co-host of the #scenefromabove podcast. Andrew has spoken at events worldwide on GIS and Earth observation. He is a keen user of Python, especially for rapid prototyping for geospatial challenges. Currently, he is working with clients to maximize their investment with geospatial technology through direct consulting, training, and technical writing.
Read more about Andrew Cutts

Anita Graser
Anita Graser
author image
Anita Graser

Anita Graser is a spatial data scientist, open source GIS advocate, and author with a background in geographic information science. She is currently working with the Center for Mobility Systems at the Austrian Institute of Technology in Vienna and teaching QGIS classes at UNIGIS Salzburg. She serves on the QGIS project steering committee. and has published several books about QGIS. Furthermore, she develops tools, such as the Time Manager plugin for QGIS. You can follow her on Twitter @underdarkGIS.
Read more about Anita Graser

View More author details
Right arrow

Creating custom geoprocessing scripts using Python

In Chapter 5, Spatial Analysis, we used the tools of Processing Toolbox to analyze our data. We are not limited to these tools, however, as we can also write our own. We can expand processing with our own scripts. The advantages of processing scripts over normal Python scripts, such as the ones we saw in the previous section, are as follows:

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

Writing your first processing script

We will now create our first script that fetches some layer information. The processing has been completely...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learn QGIS - Fourth Edition
Published in: Nov 2018Publisher: PacktISBN-13: 9781788997423

Authors (2)

author image
Andrew Cutts

Andrew Cutts holds a geography degree and a masters degree in GIS and has almost 20 years of experience in working with geospatial technology. He currently works as a freelance geospatial consultant. He has worked in local government, large multinational companies, and small and medium-sized enterprises. He has run a geospatial blog for almost 3 years and is a co-host of the #scenefromabove podcast. Andrew has spoken at events worldwide on GIS and Earth observation. He is a keen user of Python, especially for rapid prototyping for geospatial challenges. Currently, he is working with clients to maximize their investment with geospatial technology through direct consulting, training, and technical writing.
Read more about Andrew Cutts

author image
Anita Graser

Anita Graser is a spatial data scientist, open source GIS advocate, and author with a background in geographic information science. She is currently working with the Center for Mobility Systems at the Austrian Institute of Technology in Vienna and teaching QGIS classes at UNIGIS Salzburg. She serves on the QGIS project steering committee. and has published several books about QGIS. Furthermore, she develops tools, such as the Time Manager plugin for QGIS. You can follow her on Twitter @underdarkGIS.
Read more about Anita Graser