This topic describes the ST_PointFromWKB function. This function constructs a point object by using a Well-Known Binary (WKB) string.
Syntax
geometry ST_GeomFromWKB(bytea geom);
geometry ST_GeomFromWKB(bytea geom , integer srid);Parameters
| Parameter | Description |
|---|---|
| geom | The WKB string that you want to specify. |
| srid | The spatial reference identifier (SRID) of the point object. |
Description
- If you do not specify an SRID, the SRID defaults to 0.
- If the WKB string that you specify does not represent a point object, this function returns NULL.
- This function supports 3D objects and does not discard the z-index of the geometry object that is constructed.
- This function supports circular strings and curves.
Examples
SELECT ST_AsEWKT(ST_GeomFromWKB(E'\\x01010000000000000000c05d400000000000004440'));
st_asewkt
---------------
POINT(119 40)
(1 row)