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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close