Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

ST_GeogFromWKB

Introduction: Construct a Geography from WKB Binary. This function also supports EWKB format. If SRID is not provided then it defaults to 0.

Format:

ST_GeogFromWKB (Wkb: Bytes)

ST_GeogFromWKB (Wkb: Bytes, srid: Integer)

Return type: Geography

Since: v1.9.1

Example:

SELECT ST_GeogFromWKB([01 02 00 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)