ST_Polygonize

更新时间:2023-10-13 08:36:11

栅格对象按照像素值进行矢量化操作。

语法

setof record ST_Polygonize( raster rast, 
                            integer bandnumber, 
                            cstring options,
                            out geom geometry,
                            out id integer,
                            out value float8);

参数

参数

是否必填

描述

参数

是否必填

描述

rast

输入的栅格对象。

bandnumber

目标波段值,从0开始。

options

矢量化配置信息。

options参数:

参数

类型

描述

默认值

参数

类型

描述

默认值

ingoreValue

float

忽略值,除nodata(无效值)外不需要参与polygonize矢量化计算的值。

0

示例

select ST_Polygonize(rast,1,'{"ingoreValue":0}') from rast_table where id=1;

输入:

image.png

输出:

image.png
  • 本页导读 (1)
  • 语法
  • 参数
  • options参数:
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等