How-To Guides

Concrete, step-by-step solutions for Python GIS tasks — from loading a shapefile to shipping a scheduled, tested, containerised pipeline.

These guides are built around specific, real-world tasks. Each one starts with a clear problem statement, gives you a quick working answer, and then walks through a complete solution with code you can copy and adapt.

They span the whole arc of a GIS workflow. The everyday operations are here — reading a shapefile, reprojecting, filtering, spatial joins, buffers, choropleths, raster extraction. So is everything that comes after: cleaning messy attributes and geometry, batch-processing whole folders, chunking datasets too large for memory, building configurable pipelines, testing them, containerising them, running them in CI, and driving QGIS itself from Python.

Every guide is self-contained, so you do not need to read them in order. If you would rather follow a route than pick a single task, the learning paths string these guides into four topic-based sequences.

123 How-to guides
58 Concepts
58 Fixes

Every how-to guide, A–Z

123 guides in total. Showing 1–30, page 1 of 5.

Running into errors?

If something is not working — a CRS mismatch, a batch job that stops on one bad file, a scheduled script that never runs — the fixes section has targeted answers for each of these workflows.