Terrain analysis with raster functions

This sample demonstrates how to use RasterFunction and rasterFunctionUtils with the Terrain 3D layer, displayed as an ImageryTileLayer. This approach enables the visualization of key terrain attributes, such as slope, elevation, and aspect. You can display these properties individually or in combination, allowing users to dynamically filter and explore terrain data for specific areas.

Note: The results depend on the level of detail (LOD) loaded at a given zoom level. Variations in zoom can lead to differences in the displayed data.

The Esri-provided Terrain 3D layer offers a global elevation surface for use in ArcGIS 3D applications. This layer supports dynamic client-side raster analysis using RasterFunction. The rasterFunctionUtils library simplifies this process by providing methods such as aspect(), slope(), and remap(), allowing users to create custom terrain analyses and visualize specific aspects of the landscape.

This sample demonstrates three types of visualization:

  • Custom: Configurable elevation, slope, and aspect, with a single color highlighting the defined areas.
  • Elevation: A gradient color scheme representing different elevation levels.
  • Slope: A color-mapped representation of specified slope value ranges.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.