ST_GeomFromTWKB

Updated at:

Returns a geometry object corresponding to the given Tiny Well-Known Binary (TWKB) expression.

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)