ST_Patch

Updated at:

This function constructs a pcpatch object from a pcpoint array.

Syntax

pcpatch ST_Patch(pcpoint[] pts);

Parameters

ParameterDescription
ptsThe pcpoint array.

Examples

Insert aggregated patches from a point table, grouping every 10 points by ID:

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