ST_patchAvg

计算pcpatch对象中pcpoint所有属性的平均值,返回新的pcpoint对象。

语法

pcpoint ST_patchAvg(pcpatch pc);

参数

参数名称

描述

pc

pcpatch对象。

示例

SELECT ST_AsText(ST_PatchAvg(pa)) FROM patches WHERE id = 7;
-------------------------------------
{"pcid":1,"pt":[-126.46,45.54,54.5,5]}