
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Python turns repeated clicks into one script you can run again.
Install Python once, in its own environment.
Run code in a notebook cell and read an error message.
A variable stores a value; its type decides what you can do with it.
Operators, order of operations, rounding, and map scale.
Clean, split and check text such as names and coordinate system codes.
A list holds an ordered collection that you pick out by position.
A dictionary looks values up by name, like one row of an attribute table.
A tuple is a fixed group of values, ideal for a coordinate.
An if statement runs code only when a condition is true.
A for loop runs the same steps for every item.
A function packages steps under a name so you can reuse them.
Load ready-made tools such as math, statistics and GeoPandas.
A table with rows, columns and a type for each column.
Read a CSV file and check what you loaded.
Pick columns and keep only the rows that match a condition.
Counts, totals and averages by category.
What shapefile, GeoPackage, GeoJSON and CSV hold.
read_file gives you a GeoDataFrame.
Rows, columns, geometry type, coordinate system and extent.
T1. Inspect the rivers layer
Turn coordinate columns into points and write a file.
Units and distortion change your results.
Defining a coordinate system is not the same as converting.
Convert with to_crs and follow a short checklist.
T2. River lengths in kilometres
Cut one layer to the shape of another.
Create zones around features, in the right units.
T3. A 3 kilometre buffer
Intersection, union and difference of two layers.
Attach attributes from one layer to another by location.
T4. Wet gauges per catchment
Merge features that share a value.
T5. Area of the Upper group
Draw a layer to check your result.
Write outputs to files you can share.
T6. Clip, map and save
Load, check, reproject, clip, buffer and save in one script.
How the scripted operation relates to the programs you may use.
This course contains the use of artificial intelligence. AI was used only to read aloud the instructor's original script. No changes to wording or meaning were made. AI was used to create images following exact instructions, and the results were checked for accuracy by the instructor.
Do you repeat the same GIS steps again and again? This course shows you how to turn those steps into short Python scripts that you can run whenever you need them.
You start from zero. No programming experience is needed. You first learn the basics of Python: storing information, working with numbers, text and coordinates, making decisions, repeating work and writing your own small functions. Then you use GeoPandas, a free, open source library, to read spatial data, check what is inside it, work with coordinate systems, and run the core GIS operations: clip, buffer, overlay, spatial join and dissolve.
The course is software neutral. You do not need QGIS, ArcGIS or MapInfo installed, and the course is not a promotion for any of them. One lecture near the end simply shows how the same clip looks in each of those programs, so you can see how your scripts relate to the tools you may already use.
Lectures are short, usually five to ten minutes, and each one covers a single idea. All code is shown on screen, and you can follow along on your own computer with free software.
By the end you will be able to read a short GIS script and understand it, change it to suit your own data, and write simple scripts for the repeated jobs in your day.
Declaration: This course contains the use of artificial intelligence. AI was used only to read aloud the instructor's original script. No changes to wording or meaning were made. AI was used to create images following exact instructions, and the results were checked for accuracy by the instructor.