ST_GeogFromEWKB¶
Introduction: Construct a Geography from EWKB Binary. This function is an alias of ST_GeogFromWKB. The SRID embedded in the EWKB is attached to the resulting geography.
Format:
ST_GeogFromEWKB (EWkb: Bytes)
Return type: Geography
Since: v1.9.1
Example:
SELECT ST_GeogFromEWKB([01 02 00 00 20 E6 10 00 00 02 00 00 00 00 00 00 00 84 D6 00 C0 00 00 00 00 80 B5 D6 BF 00 00 00 60 E1 EF F7 BF 00 00 00 80 07 5D E5 BF])
Output:
LINESTRING (-2.1 -0.4, -1.5 -0.7)
The EWKB above embeds SRID 4326, which is carried over to the resulting geography.