Constructs a geometry object from a Tiny Well-Known Binary (TWKB) representation.
Syntax
geometry ST_GeomFromTWKB(bytea twkb);Parameters
| Parameter | Type | Description |
|---|---|---|
twkb | bytea | The TWKB string that you want to specify. |
Examples
Decode a raw TWKB byte string
SELECT ST_AsText(ST_GeomFromTWKB(E'\\x0100e80150'));Output:
st_astext
---------------
POINT(116 40)
(1 row)该文章对您有帮助吗?