Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

From Field to Code: PyQGIS from Scratch

We’re building a real tool for QGIS, and learning to write code along the way – from scratch.

This is the diary of one project. We’re field engineers: we know maps and QGIS, but we’ve never written code. We have a problem to solve: finding out which residential buildings stand close to overhead power lines, and how long it takes help to reach them. We didn’t find a ready-made open tool for this, so we’re building our own. It’s called LineReach.

Step by step, we go the whole way: from the question ‘what exactly do we want to calculate?’ to a QGIS plugin that works for any municipality. We learn Python and PyQGIS only as far as this problem needs.

Whoever comes along with us gets two things at the end:

The book is being written now: new lessons appear as the project moves forward. The tool’s code is open: https://github.com/ElviraGD-lab/linereach