This topic describes the ST_GeogFromWKB function. This function constructs a geography object by using a standard Well-Known Binary (WKB) string or an Extended Well-Known Binary (EWKB) string.

Syntax

geography  ST_GeogFromWKB(bytea  wkb);

Parameters

Parameter Description
wkb The standard WKB string or EWKB string that you want to specify.

Description

  • If you do not specify a spatial reference identifier (SRID), the default SRID 4326 is used.
  • This function supports circular strings and curves.

Examples

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