ST_GeomFromTWKB

更新时间:
复制 MD 格式

Constructs a geometry object from a Tiny Well-Known Binary (TWKB) representation.

Syntax

geometry ST_GeomFromTWKB(bytea twkb);

Parameters

ParameterTypeDescription
twkbbyteaThe 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)