跳转至
🎉 SedonaDB 0.4.0 已正式发布!🗺️ 新增 Python DataFrame API、R dplyr 接口、Geography 支持及 GPU 加速空间连接。阅读发布博客 →

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.