跳转至
Apache Sedona 1.9.0 已正式发布,新增 Spark 4.1 支持、proj4sedona 坐标系转换、Bing Tile 函数等众多特性!

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.