Practical exercises
Search by title, method, software, tutorial ID or research theme. Expand a series to view each planned lesson.
All tutorials are planned. Exact versions, datasets and entitlement checks will accompany released lessons. Open educational materials do not imply free access to all software.
40 of 40 tutorials
Series A · Rust Programming Fundamentals (8)
- RU-A01Permanent link
Installing Rust and creating a Cargo project
Learning objective: Compile a command-line programme and manage dependencies.
Software and inputs: Rust; Cargo; rust-analyzer
- RU-A02Permanent link
Variables, types and control flow in Rust
Learning objective: Represent coordinate values and implement conditional calculations.
Software and inputs: Rust; Cargo; rust-analyzer
- RU-A03Permanent link
Functions, structs and enums
Learning objective: Model spatial records and define reusable typed functions.
Software and inputs: Rust; Cargo; rust-analyzer
- RU-A04Permanent link
Ownership, borrowing and lifetimes
Learning objective: Pass spatial arrays safely without unnecessary cloning.
Software and inputs: Rust; Cargo; rust-analyzer
- RU-A05Permanent link
Collections and iterators
Learning objective: Transform feature attributes using iterators and collections.
Software and inputs: Rust; Cargo; rust-analyzer
- RU-A06Permanent link
Error handling with Result and Option
Learning objective: Handle missing values and invalid spatial inputs explicitly.
Software and inputs: Rust; Cargo; rust-analyzer
- RU-A07Permanent link
Traits and generics for numeric workflows
Learning objective: Define shared behaviour for coordinate or measurement types.
Software and inputs: Rust; Cargo; rust-analyzer
- RU-A08Permanent link
Testing and documenting Rust code
Learning objective: Write unit tests, examples and documentation for a spatial function.
Software and inputs: Rust; Cargo; rust-analyzer
Series B · Geospatial Data Structures and Geometry (6)
- RU-B01Permanent link
Representing points, lines and polygons in Rust
Learning objective: Construct geometry types and inspect coordinate sequences.
Software and inputs: Rust; geo; geo-types
- RU-B02Permanent link
Distance and area calculations
Learning objective: Compare planar calculations with suitable geodesic methods.
Software and inputs: Rust; geo; geo-types
- RU-B03Permanent link
Bounding boxes and geometry predicates
Learning objective: Evaluate containment and intersection using geometry traits.
Software and inputs: Rust; geo; geo-types
- RU-B04Permanent link
Polygon topology and invalid inputs
Learning objective: Identify invalid rings and document limitations of chosen repair methods.
Software and inputs: Rust; geo; geo-types
- RU-B05Permanent link
Coordinate transformations using PROJ
Learning objective: Transform coordinates and test axis order and units.
Software and inputs: Rust; geo; geo-types; proj crate; native PROJ
- RU-B06Permanent link
Serialising geometries as GeoJSON
Learning objective: Convert typed geometry into interoperable GeoJSON records.
Software and inputs: Rust; geo; geo-types; geojson; serde
Series C · Vector and Raster Data Processing (8)
- RU-C01Permanent link
Reading vector layers through GDAL bindings
Learning objective: Inspect vector fields, geometries and CRS metadata.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL
- RU-C02Permanent link
Writing GeoPackage feature layers
Learning objective: Create an output schema and write attributed geometries.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL
- RU-C03Permanent link
Processing GeoJSON feature collections
Learning objective: Stream or parse features and preserve selected attributes.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL; geojson; serde_json
- RU-C04Permanent link
Reading raster bands and geotransforms
Learning objective: Access pixel arrays and verify coordinate transformations.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL
- RU-C05Permanent link
Raster nodata handling and masked arithmetic
Learning objective: Apply nodata-aware calculations to numeric pixel buffers.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL
- RU-C06Permanent link
Raster resampling and grid alignment
Learning objective: Use GDAL warp or supported bindings and verify aligned grids.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL; GDAL CLI as needed
- RU-C07Permanent link
Calculating spectral indices in Rust
Learning objective: Compute NDVI with valid-pixel checks and compare reference output.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL
- RU-C08Permanent link
Writing tiled GeoTIFF and COG outputs
Learning objective: Create tiled rasters and validate COG output using GDAL tooling.
Software and inputs: Rust; Cargo; GDAL bindings; native GDAL; GDAL CLI
Series D · Spatial Algorithms and Indexing (6)
- RU-D01Permanent link
Building spatial indexes with R-trees
Learning objective: Index bounding boxes and compare query time with linear scans.
Software and inputs: Rust; geo; rstar
- RU-D02Permanent link
Nearest-neighbour queries in Rust
Learning objective: Retrieve nearest candidates and validate distances.
Software and inputs: Rust; geo; rstar
- RU-D03Permanent link
Efficient point-in-polygon batch tests
Learning objective: Use index candidates to reduce exact geometry checks.
Software and inputs: Rust; geo; rstar
- RU-D04Permanent link
Spatial joins with candidate filtering
Learning objective: Join features using indexed candidate and exact predicate stages.
Software and inputs: Rust; geo; rstar
- RU-D05Permanent link
Grid-based spatial aggregation
Learning objective: Assign points to cells and compare counts against a reference.
Software and inputs: Rust; geo; rstar
- RU-D06Permanent link
Benchmarking spatial algorithm complexity
Learning objective: Measure runtime and memory across increasing feature counts.
Software and inputs: Rust; geo; rstar; criterion
Series E · Parallel and High-Performance Computing (6)
- RU-E01Permanent link
Parallel iteration over geospatial arrays
Learning objective: Use Rayon and compare serial and parallel execution.
Software and inputs: Rust; Rayon; Cargo
- RU-E02Permanent link
Windowed raster processing with bounded memory
Learning objective: Process tiles without sharing unsafe dataset handles.
Software and inputs: Rust; Rayon; Cargo; GDAL bindings; native GDAL
- RU-E03Permanent link
Concurrent vector feature processing
Learning objective: Partition independent features and combine deterministic outputs.
Software and inputs: Rust; Rayon; Cargo; geo; rstar
- RU-E04Permanent link
Efficient binary data and columnar formats
Learning objective: Read columnar attributes and measure memory and I/O behaviour.
Software and inputs: Rust; Rayon; Cargo; Arrow and Parquet crates
- RU-E05Permanent link
Profiling and optimising geospatial Rust code
Learning objective: Identify allocation and runtime bottlenecks using benchmarks.
Software and inputs: Rust; Rayon; Cargo; criterion; profiler
- RU-E06Permanent link
Comparing Rust and Python processing performance
Learning objective: Benchmark equivalent algorithms with matched inputs and correctness tests.
Software and inputs: Rust; Rayon; Cargo; Python; NumPy; Rasterio
Series F · Geospatial Software and Python Integration (6)
- RU-F01Permanent link
Building a geospatial command-line utility
Learning objective: Parse input arguments and validate paths and spatial parameters.
Software and inputs: Rust; Cargo; Python; clap
- RU-F02Permanent link
Creating Python extensions with PyO3
Learning objective: Expose a Rust function and compare numerical outputs with Python.
Software and inputs: Rust; Cargo; Python; PyO3; maturin
- RU-F03Permanent link
Packaging Rust geospatial tools for Python
Learning objective: Build and test a wheel with documented native dependencies.
Software and inputs: Rust; Cargo; Python; maturin; pytest
- RU-F04Permanent link
Developing a small spatial web service in Rust
Learning objective: Serve validated spatial queries as GeoJSON over HTTP.
Software and inputs: Rust; Cargo; Python; axum; serde; geo
- RU-F05Permanent link
Compiling selected spatial algorithms to WebAssembly
Learning objective: Expose a geometry operation to a browser and test its output.
Software and inputs: Rust; Cargo; Python; wasm-bindgen; wasm-pack
- RU-F06Permanent link
Publishing and maintaining a geospatial Rust crate
Learning objective: Document API behaviour, automate tests and prepare a versioned release.
Software and inputs: Rust; Cargo; Python; Git; Cargo
Learning resources
Practical guidelines, videos, teaching datasets and source code will be linked here as they become available. Data redistribution and software licensing conditions will be respected.
