Forrest logo
back to the gdaldem tool

gdaldem:tldr:96656

gdaldem: Compute the hillshade of a DEM.
$ gdaldem hillshade ${path-to-input-tif} ${path-to-output-tif}
try on your machine

The command "gdaldem hillshade" is used to create a hillshade raster image from an input raster image file.

Here's a breakdown of the command:

  • "gdaldem": This is the command-line tool for using the GDAL (Geospatial Data Abstraction Library) software, which is used for working with geospatial data.

  • "hillshade": This is the specific algorithm or function within gdaldem that creates the hillshade image.

  • "${path-to-input-tif}": This is the path to the input raster image file. Replace "${path-to-input-tif}" with the actual file path and name of the input raster image that you want to create a hillshade from. The file format is TIF (Tagged Image File Format), but GDAL supports various other geospatial file formats as well.

  • "${path-to-output-tif}": This is the path to the output raster image file, where the resulting hillshade image will be saved. Replace "${path-to-output-tif}" with the desired file path and name for the output hillshade file. Again, the file format will be TIF.

Make sure to replace "${path-to-input-tif}" and "${path-to-output-tif}" with the actual file paths before running the command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gdaldem tool