文档

ST_Slope

更新时间:

计算坡度,返回弧度为单位的像元坡度栅格对象。

语法

raster ST_Slope(raster rast, integer pyramid_level, integer band, Box extent, BoxType type, float8 zfactor, cstring storageOption);

参数

参数名称

描述

rast

raster对象。

pyramid_level

计算的金字塔等级。

Band

波段索引号

box

分析区域,格式为'((m inX,m inY), (m axX,m axY))'

type

分析区域的坐标类型,只能是以下一种:

  • Raster(影像坐标)

  • World(世界坐标)

zfactor

高程夸张值,默认为1。

storageOption

目标raster对象的存储选项,参见ST_ClipToRast函数。

描述

坡度计算函数用于为每个像元计算值在从该像元到与其相邻的像元方向上的最大变化率。实际上,高程随着像元与其相邻的八个像元之间距离的变化而产生的最大变化率,可用来识别自该像元开始的最陡坡降。

示例

select st_slope(rast, 0, 0, '(0,0), (5,5)', 'Raster', 2.0) from t_surface where id=1;
  • 本页导读 (1)
文档反馈