This function constructs a pcpatch object from a pcpoint array.

Syntax

pcpatch ST_Patch(pcpoint[] pts); 

Parameters

Parameter Description
pts The pcpoint array.

Examples

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