A C++ command-line tool for processing Digital Terrain Models (DTMs), built as a geology/geophysics coursework project.
- Slope, aspect, curvature, and hillshade map generation
- Water flow routing (D8, D-infinity, MFD algorithms)
- DTM upsampling (nearest neighbour, bilinear, bicubic)
- Outputs visualisation images as PNG files
src/– All C++ source and header filesdata/– Sample DTM input files (.txt)docs/– User documentation
g++ src/*.cpp -o dtm_tool
./dtm_toolRun the program and follow the interactive prompts to load a DTM file and select a processing operation.
- stb_image_write (included) – for PNG output