CNCAPResearch & Education

Home / Education / Rust for Geospatial Science (RustGIS)

GIS Application · Programme 07

Rust for Geospatial Science (RustGIS)

Memory-safe geospatial programming, spatial algorithms and high-performance data processing.

40Planned tutorials
6Learning series
3Difficulty levels

Practical exercises

Search by title, method, software, tutorial ID or research theme. Expand a series to view each planned lesson.

Programme requirements: Rust stable toolchain and Cargo; some crates need native GDAL/PROJ; RustGIS denotes a learning pathway, not a single GIS product.
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)
  1. Installing Rust and creating a Cargo project

    Beginner · Planned

    Learning objective: Compile a command-line programme and manage dependencies.

    Software and inputs: Rust; Cargo; rust-analyzer

  2. Variables, types and control flow in Rust

    Beginner · Planned

    Learning objective: Represent coordinate values and implement conditional calculations.

    Software and inputs: Rust; Cargo; rust-analyzer

  3. Functions, structs and enums

    Beginner · Planned

    Learning objective: Model spatial records and define reusable typed functions.

    Software and inputs: Rust; Cargo; rust-analyzer

  4. Ownership, borrowing and lifetimes

    Beginner · Planned

    Learning objective: Pass spatial arrays safely without unnecessary cloning.

    Software and inputs: Rust; Cargo; rust-analyzer

  5. Collections and iterators

    Beginner · Planned

    Learning objective: Transform feature attributes using iterators and collections.

    Software and inputs: Rust; Cargo; rust-analyzer

  6. Error handling with Result and Option

    Beginner · Planned

    Learning objective: Handle missing values and invalid spatial inputs explicitly.

    Software and inputs: Rust; Cargo; rust-analyzer

  7. Traits and generics for numeric workflows

    Beginner · Planned

    Learning objective: Define shared behaviour for coordinate or measurement types.

    Software and inputs: Rust; Cargo; rust-analyzer

  8. Testing and documenting Rust code

    Beginner · Planned

    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)
  1. Representing points, lines and polygons in Rust

    Intermediate · Planned

    Learning objective: Construct geometry types and inspect coordinate sequences.

    Software and inputs: Rust; geo; geo-types

  2. Distance and area calculations

    Intermediate · Planned

    Learning objective: Compare planar calculations with suitable geodesic methods.

    Software and inputs: Rust; geo; geo-types

  3. Bounding boxes and geometry predicates

    Intermediate · Planned

    Learning objective: Evaluate containment and intersection using geometry traits.

    Software and inputs: Rust; geo; geo-types

  4. Polygon topology and invalid inputs

    Intermediate · Planned

    Learning objective: Identify invalid rings and document limitations of chosen repair methods.

    Software and inputs: Rust; geo; geo-types

  5. Coordinate transformations using PROJ

    Intermediate · Planned

    Learning objective: Transform coordinates and test axis order and units.

    Software and inputs: Rust; geo; geo-types; proj crate; native PROJ

  6. Serialising geometries as GeoJSON

    Intermediate · Planned

    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)
  1. Reading vector layers through GDAL bindings

    Intermediate · Planned

    Learning objective: Inspect vector fields, geometries and CRS metadata.

    Software and inputs: Rust; Cargo; GDAL bindings; native GDAL

  2. Writing GeoPackage feature layers

    Intermediate · Planned

    Learning objective: Create an output schema and write attributed geometries.

    Software and inputs: Rust; Cargo; GDAL bindings; native GDAL

  3. Processing GeoJSON feature collections

    Intermediate · Planned

    Learning objective: Stream or parse features and preserve selected attributes.

    Software and inputs: Rust; Cargo; GDAL bindings; native GDAL; geojson; serde_json

  4. Reading raster bands and geotransforms

    Intermediate · Planned

    Learning objective: Access pixel arrays and verify coordinate transformations.

    Software and inputs: Rust; Cargo; GDAL bindings; native GDAL

  5. Raster nodata handling and masked arithmetic

    Intermediate · Planned

    Learning objective: Apply nodata-aware calculations to numeric pixel buffers.

    Software and inputs: Rust; Cargo; GDAL bindings; native GDAL

  6. Raster resampling and grid alignment

    Intermediate · Planned

    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

  7. Calculating spectral indices in Rust

    Intermediate · Planned

    Learning objective: Compute NDVI with valid-pixel checks and compare reference output.

    Software and inputs: Rust; Cargo; GDAL bindings; native GDAL

  8. Writing tiled GeoTIFF and COG outputs

    Intermediate · Planned

    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)
  1. Building spatial indexes with R-trees

    Advanced · Planned

    Learning objective: Index bounding boxes and compare query time with linear scans.

    Software and inputs: Rust; geo; rstar

  2. Nearest-neighbour queries in Rust

    Advanced · Planned

    Learning objective: Retrieve nearest candidates and validate distances.

    Software and inputs: Rust; geo; rstar

  3. Efficient point-in-polygon batch tests

    Advanced · Planned

    Learning objective: Use index candidates to reduce exact geometry checks.

    Software and inputs: Rust; geo; rstar

  4. Spatial joins with candidate filtering

    Advanced · Planned

    Learning objective: Join features using indexed candidate and exact predicate stages.

    Software and inputs: Rust; geo; rstar

  5. Grid-based spatial aggregation

    Advanced · Planned

    Learning objective: Assign points to cells and compare counts against a reference.

    Software and inputs: Rust; geo; rstar

  6. Benchmarking spatial algorithm complexity

    Advanced · Planned

    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)
  1. Parallel iteration over geospatial arrays

    Advanced · Planned

    Learning objective: Use Rayon and compare serial and parallel execution.

    Software and inputs: Rust; Rayon; Cargo

  2. Windowed raster processing with bounded memory

    Advanced · Planned

    Learning objective: Process tiles without sharing unsafe dataset handles.

    Software and inputs: Rust; Rayon; Cargo; GDAL bindings; native GDAL

  3. Concurrent vector feature processing

    Advanced · Planned

    Learning objective: Partition independent features and combine deterministic outputs.

    Software and inputs: Rust; Rayon; Cargo; geo; rstar

  4. Efficient binary data and columnar formats

    Advanced · Planned

    Learning objective: Read columnar attributes and measure memory and I/O behaviour.

    Software and inputs: Rust; Rayon; Cargo; Arrow and Parquet crates

  5. Profiling and optimising geospatial Rust code

    Advanced · Planned

    Learning objective: Identify allocation and runtime bottlenecks using benchmarks.

    Software and inputs: Rust; Rayon; Cargo; criterion; profiler

  6. Comparing Rust and Python processing performance

    Advanced · Planned

    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)
  1. Building a geospatial command-line utility

    Advanced · Planned

    Learning objective: Parse input arguments and validate paths and spatial parameters.

    Software and inputs: Rust; Cargo; Python; clap

  2. Creating Python extensions with PyO3

    Advanced · Planned

    Learning objective: Expose a Rust function and compare numerical outputs with Python.

    Software and inputs: Rust; Cargo; Python; PyO3; maturin

  3. Packaging Rust geospatial tools for Python

    Advanced · Planned

    Learning objective: Build and test a wheel with documented native dependencies.

    Software and inputs: Rust; Cargo; Python; maturin; pytest

  4. Developing a small spatial web service in Rust

    Advanced · Planned

    Learning objective: Serve validated spatial queries as GeoJSON over HTTP.

    Software and inputs: Rust; Cargo; Python; axum; serde; geo

  5. Compiling selected spatial algorithms to WebAssembly

    Advanced · Planned

    Learning objective: Expose a geometry operation to a browser and test its output.

    Software and inputs: Rust; Cargo; Python; wasm-bindgen; wasm-pack

  6. Publishing and maintaining a geospatial Rust crate

    Advanced · Planned

    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.