This topic describes the ST_WKBToSQL function. This function constructs a geometry object by using a Well-Known Binary (WKB) string.

Syntax

geometry  ST_WKBToSQL(bytea  WKB);

Parameters

Parameter Description
WKB The WKB string that you want to specify.

Description

This function is equivalent to the ST_GeomFromWKB function, except that this function does not include the spatial reference identifier (SRID) parameter.

Examples

SELECT ST_AsText(ST_WKBToSQL(E'\\x01010000000000000000005d400000000000004440'));
   st_astext
---------------
 POINT(116 40)
(1 row)