ST_WKBToSQL

更新时间:
复制 MD 格式

Constructs a geometry object from a Well-Known Binary (WKB) string.

Syntax

geometry ST_WKBToSQL(bytea WKB);

Parameters

ParameterDescription
WKBThe WKB string.

Description

ST_WKBToSQL is equivalent to ST_GeomFromWKB, except that it does not accept a spatial reference identifier (SRID) parameter.

Examples

SELECT ST_AsText(ST_WKBToSQL(E'\\x01010000000000000000005d400000000000004440'));

Output:

   st_astext
---------------
 POINT(116 40)
(1 row)