All Products
Search
Document Center

ApsaraDB RDS:ST_makePoint

Last Updated:Mar 28, 2026

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

Syntax

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

Parameters

ParameterDescription
pcidThe ID of the point cloud schema. The value comes from the pointcloud_formats table.
float8[]The values as a float8 array. The number of elements must match the number of dimensions defined in the schema.

Examples

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

Output:

010100000064CEFFFF94110000703000000400