根據地區中的DEM高程值,計算地區中的水流方向。
文法
float8[] ST_flow_direction(raster rast, Box box);
參數
| 參數名稱 | 描述 |
| rast | raster對象,目前僅支援1波段的DEM。 |
| box | 分析地區,全局座標。 |
描述
使用d8演算法,根據地區中的DEM高程值,計算地區中的水流方向。
raster對象目前僅支援1波段的DEM資料。
樣本
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)