gdal_contour
Create contour lines and polygons from a digital elevation model. More information: <https://gdal.org/programs/gdal_contour.html>.
Install
- All systems
-
curl cmd.cat/gdal_contour.sh
- Debian
-
apt-get install gdal-bin
- Ubuntu
-
apt-get install gdal-bin
- Arch Linux
-
pacman -S gdal
- Kali Linux
-
apt-get install gdal-bin
- Fedora
-
dnf install gdal
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install gdal-bin
- OS X
-
brew install gdal
- Raspbian
-
apt-get install gdal-bin
- Dockerfile
- dockerfile.run/gdal_contour
Create contour lines and polygons from a digital elevation model. More information: <https://gdal.org/programs/gdal_contour.html>.
-
Create a vector dataset with contour lines spread over an 100-meter [i]nterval while [a]ttributing the elevation property as "ele":
gdal_contour -a ele -i 100.0 path/to/input.tif path/to/output.gpkg
-
Create a vector dataset with [p]olygons spread over an 100-meter [i]nterval:
gdal_contour -i 100.0 -p path/to/input.tif path/to/output.gpkg
© tl;dr; authors and contributors