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

ST_Distance

Introduction: Return the Euclidean distance between A and B

ST_Distance

Format: ST_Distance (A:geometry, B:geometry)

Return type: Double

SQL example:

SELECT ST_Distance(polygondf.countyshape, polygondf.countyshape)
FROM polygondf