View on GitHub

Apply a hillshade renderer to a raster.

Image of Apply hillshade renderer to raster sample Image of Apply hillshade renderer to raster sample settings

Use case

An environmental agency may track coastal erosion by comparing images of an area taken over a longer period of time with hillshade renderers applied.

How to use the sample

Choose and adjust the settings to update the hillshade renderer on the raster layer. The sample allows you to change the Altitude, Azimuth, and Slope Type.

How it works

  1. Create a Raster from a grayscale raster file.
  2. Create a RasterLayer from the raster.
  3. Create a Basemap from the raster layer and set it to the map.
  4. Create a HillshadeRenderer, specifying the altitude, azimuth, slope type and other properties.
  5. Set the hillshade renderer to be used on the raster layer.

Relevant API

  • Basemap
  • HillshadeRenderer
  • Raster
  • RasterLayer

Tags

altitude, angle, azimuth, raster, slope, visualization