This is an old revision of the document!


PHP's gd library is missing or unable to create PNG images

Calc Slope Map

Description

This functor calculates a slope map based on a height map.

Inputs

Name Type Description
Elevation Map A height map. The height is assumed to be in meters. It may have null values.

Optional Inputs

Name Type Description Default Value
use Diagonals Are Longer Bool Indicates if the distance between the cells at the diagonals must be increased by the factor of 1.414213562. True
Slope In percent Bool If true, the slope will be calculated in percent; otherwise, it is calculated in degrees. False
Cell Type Cell Type The slope data cell type. Signed 32 Bit Integer
Null Value Int Null value of the slope map. The cell type must be appropriate. -2147483648
Slope Is Sparse Bool If true, set the output map as sparse. False

Output

Name Type Description
Slope Map The slope map. Map format has the same dimensions of the source map.

Group

Notes

The functor calculates the slope of a cell using the height difference for each neighbor cell and its dimension. The largest slope is chosen as the output value.

Internal Name

CalcSlopeMap