ST_Patch

更新时间:
复制 MD 格式

Constructs a pcpatch object from an array of pcpoint values.

Syntax

pcpatch ST_Patch(pcpoint[] pts);

Parameters

ParameterDescription
ptsThe pcpoint array.

Example

The following example inserts patches into the patches table by grouping points from the points table using GROUP BY:

INSERT INTO patches (pa)
SELECT ST_Patch(pt) FROM points GROUP BY id/10;