snippetbashTip
gdaldem — Analyze and visualize digital elevation models (DEM). More information: <https://gdal.org/en/stable/
Viewed 0 times
commandgdaldemelevationandanalyzeclidigitalvisualize
Problem
How to use the
gdaldem command: Analyze and visualize digital elevation models (DEM). More information: <https://gdal.org/en/stable/programs/gdaldem.html>.Solution
gdaldem — Analyze and visualize digital elevation models (DEM). More information: <https://gdal.org/en/stable/programs/gdaldem.html>.Compute the hillshade of a DEM:
gdaldem hillshade {{path/to/input.tif}} {{path/to/output.tif}}Compute the slope of a DEM:
gdaldem slope {{path/to/input.tif}} {{path/to/output.tif}}Compute the aspect of a DEM:
gdaldem aspect {{path/to/input.tif}} {{path/to/output.tif}}Code Snippets
Compute the hillshade of a DEM
gdaldem hillshade {{path/to/input.tif}} {{path/to/output.tif}}Compute the slope of a DEM
gdaldem slope {{path/to/input.tif}} {{path/to/output.tif}}Compute the aspect of a DEM
gdaldem aspect {{path/to/input.tif}} {{path/to/output.tif}}Context
tldr-pages: common/gdaldem
Revisions (0)
No revisions yet.