Constructs a geometry object from a Tiny Well-Known Binary (TWKB) encoded value.
Syntax
geometry ST_GeomFromTWKB(bytea twkb);Parameters
| Parameter | Type | Description |
|---|---|---|
twkb | bytea | The TWKB-encoded binary value to parse. |
Example
Parse a TWKB-encoded point and return its well-known text (WKT) representation:
SELECT ST_AsText(ST_GeomFromTWKB(E'\\x0100e80150'));Expected output:
st_astext
---------------
POINT(116 40)
(1 row)该文章对您有帮助吗?