ST_asBinary

Updated at:

Returns the well-known binary (WKB) representation of a pcpoint object. WKB preserves full numeric precision, making it suitable for transferring point cloud data between systems or passing it to external spatial tools that accept binary geometry input.

Syntax

bytea ST_asBinary(pcpoint pt);

Parameters

ParameterDescription
ptThe pcpoint object to convert.

Example

SELECT ST_AsBinary('010100000064CEFFFF94110000703000000400'::pcpoint);

Output:

\x01010000800000000000c05fc000000000008046400000000000005f40