SlopeFunction

Base Type: RasterFunction

A class for a raster slope function.

Remarks

Calculates the slope values for an elevation model. Slope represents the rate of change of elevation for each DEM cell. It's the first derivative of a DEM.

Examples

C#

RenderingRule renderRule = new RenderingRule();

SlopeFunction function = new SlopeFunction();

SlopeFunctionArguments argument = new SlopeFunctionArguments();

argument.Names = new string[] { "ZFactor" };

argument.Values = new object[] {zfactor }; //a double

renderRule.Arguments = argument;

renderRule.Function = function;

renderRule.VariableName = "DEM";

geoImgDesc.RenderingRule = renderRule;

11/8/2016