跳转至
🎉 Apache Sedona 1.9.1 已正式发布!🗺️ 新增 Geography SQL 函数、Box2D 与 Box3D 类型、栅格 Python UDF 等。查看发布说明 →

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)