ST_makePoint

更新时间:
复制 MD 格式

Constructs a pcpoint object from a point cloud schema ID and a coordinate array.

Syntax

pcpoint ST_makePoint(integer pcid, float8[] vals);

Parameters

ParameterDescription
pcidThe ID of the point cloud schema. To get this value, query the pointcloud_formats table.
valsThe coordinate values as a float8 array. The number of elements must match the number of dimensions defined in the schema.

Examples

Note

Before calling ST_makePoint, create the point cloud extension and define a point cloud schema. For details, see Syntax.

SELECT ST_makePoint(1, ARRAY[-127, 45, 124.0, 4.0]);

Output:

              st_makepoint
----------------------------------------
 010100000064CEFFFF94110000703000000400
(1 row)