Go to file
2024-05-08 00:28:29 +02:00
documentation Fix report formating 2024-05-08 00:16:34 +02:00
example_files Added one example file and renamed the rest 2024-05-07 22:49:49 +02:00
extern Added the argh library as a subproject 2024-05-07 11:40:33 +02:00
src Forgot to change int to uint8_t in Point constructor 2024-05-08 00:28:29 +02:00
.gitattributes track *.tif files using Git LFS 2024-04-06 14:07:49 +02:00
.gitignore fixed doxygen again 2024-04-06 14:00:27 +02:00
.gitlab-ci.yml fixed doxygen again 2024-04-06 14:00:27 +02:00
.gitmodules Added the argh library as a subproject 2024-05-07 11:40:33 +02:00
build&run.sh Added one example file and renamed the rest 2024-05-07 22:49:49 +02:00
CMakeLists.txt Update cmakelists 2024-05-07 22:25:42 +02:00
Doxyfile Update documentation 2024-04-23 22:37:11 +02:00
LICENSE Add LICENSE 2024-03-20 14:47:26 +00:00
README.md Update readme 2024-05-08 00:17:32 +02:00

Contour Creator 🗺️

This program takes a tiff heightmap and produces vector contours. This is our project for the INF205: Resource-efficient programming course

Status

  • Read .tif file into memory using gdal
  • Run the marching squares algorithm and produce a "cellmap"
  • Use a lookuptable to produce a vector file from the "cellmap"

Dependencies

  • GDAL >= 3.5
  • OpenMP
  • CMake

If you want to clone the repo with the example files you need git-lfs installed and activated with ´git lfs install´
You also need to clone with submodules to get the argh library:

git clone --recurse-submodules https://gitlab.com/Trygve/contour-creator

To install the packages on Fedora run

dnf install g++ git-lfs cmake gdal-devel

on Debian:

apt install g++ git-lfs cmake libgdal-dev

How to build:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build . --parallel

Then you can run ./contour-creator PATH/TO/HEIGTHMAP.TIF
Run an example file: ./contour-creator "../example_files/ås.tif"

Docs

Doxygen output