Constructs a geometry object from a Well-Known Binary (WKB) string.
Syntax
geometry ST_WKBToSQL(bytea WKB);Parameters
| Parameter | Description |
|---|---|
| WKB | The 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)该文章对您有帮助吗?