根據(jù)區(qū)域中的DEM高程值,計(jì)算區(qū)域中的水流方向。
語(yǔ)法
float8[] ST_flow_direction(raster rast, Box box);
參數(shù)
參數(shù)名稱 | 描述 |
---|---|
rast | raster對(duì)象,目前僅支持1波段的DEM。 |
box | 分析區(qū)域,世界坐標(biāo)。 |
描述
使用d8算法,根據(jù)區(qū)域中的DEM高程值,計(jì)算區(qū)域中的水流方向。
raster對(duì)象目前僅支持1波段的DEM數(shù)據(jù)。
示例
select st_flow_direction(rast, '((-202286.94,2232375.16),(-202135.0,2232225))'::box) from t_overflow where id =2;
st_flow_direction
--------------------------------------------------------------------------------
{2,2,2,4,4,8,2,2,2,4,4,8,1,1,2,4,8,4,128,128,1,2,4,8,2,2,1,4,4,4,1,1,1,1,4,16}
(1 row)