This function constructs a pcpatch object.

Syntax

pcpatch ST_makePatch(integer pcid, float8[] vals);

Parameters

Parameter Description
pcid The ID of the schema, which comes from the pointcloud_formats table.
vals The float8 array. The number of entries in the array is an integral multiple of the number of dimensions specified in the schema.

Examples

SELECT ST_asText(ST_MakePatch(1, ARRAY[-126.99,45.01,1,0, -126.98,45.02,2,0, -126.97,45.03,3,0]));
-------------------------------------------------
{"pcid":1,"pts":[
 [-126.99,45.01,1,0],[-126.98,45.02,2,0],[-126.97,45.03,3,0]
]}