Earthworks

earthworks
terrain
raster
beginner
A collection of tutorials demonstrating how to model terrain in GRASS with r.earthworks.
Author

Brendan Harmon

Published

July 7, 2025

Modified

July 18, 2025

Random fill operation with r.earthworks

Learn how model terrain with r.earthworks. With this tool you can generate new terrain or modify existing terrain using cut and fill operations inspired by earthworking. The first tutorial on the basics of terrain modeling introduces key concepts such as cut and fill operations. The subsequent tutorials introduce more advanced concepts such as relative operations and growth and decay functions. These tutorials demonstrate how to generate terrain, model natural landforms, and model anthropogenic landforms - i.e. earthworks - such as roads, dams, and levees. Read our paper to learn more.

Installation

g.extension extension=r.earthworks
# Install extension
gs.run_command("g.extension", extension="r.earthworks")

Tutorial Collection

  1. Basic earthworks
    Learn the basics of terrain modeling with r.earthworks.

  2. Gully modeling
    Model gullies using relative cut operations.

  3. Coastal infrastructure
    Model coastal infrastructure projects including levees and restored alluvial ridges.

  4. Terrain synthesis
    Synthesize terrain by applying landforms from one landscape to another.