Apply a raster function to a local raster file and display the output with a raster layer.

Use case
Raster functions allow processing operations that can be applied to one or more rasters on the fly. A land survey agency may apply hillshade and aspect functions to rasters with elevation data in order to better determine the topography of a landscape and to make further planning decisions.
How to use the sample
Load the sample to see a raster function applied to a raster.
How it works
- Create a
RasterFunctionusing the path to a local raster function JSON file. - Set the raster function arguments as required by the function used.
- Use the raster function to create a new
Raster. - Set the raster to a
RasterLayerand display it in theMap.
Relevant API
- Raster
- RasterFunction
- RasterLayer
Offline data
This sample uses the Shasta Elevation Raster and Color Raster Function. Both are downloaded from ArcGIS Online automatically.
About the data
The raster function in the provided JSON file blends a color image with a greyscale image (in this case, a raster image containing elevation data), to add a hillshade effect to the input raster.
Additional information
Learn more about raster functions in the ArcGIS Pro documentation.
Tags
analysis, function, image, layer, processing, raster, raster function, transformation