This function converts a pcpoint or pcpatch object into a JSON-formatted string.
Syntax
text ST_asText(pcpatch pp);
text ST_asText(pcpoint pt);
Parameters
Parameter | Description |
---|---|
pp | The pcpatch object. |
pt | The pcpoint object. |
Examples
SELECT ST_asText('010100000064CEFFFF94110000703000000400'::pcpoint);
-------------------------------
{"pcid":1,"pt":[-127,45,124,4]}