全部產品
Search
文件中心

PolarDB:ST_Polygonize

更新時間:Jul 06, 2024

柵格對象按照像素值進行向量化操作。

文法

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