This topic describes the ST_GeomFromTWKB function. This function constructs a geometry object by using a Tiny Well-Known Binary (TWKB) string.
Syntax
geometry ST_GeomFromTWKB(bytea twkb);
Parameters
Parameter | Description |
---|---|
twkb | The TWKB string that you want to specify. |
Examples
SELECT ST_AsText(ST_GeomFromTWKB(E'\\x0100e80150'));
st_astext
---------------
POINT(116 40)
(1 row)