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

ST_Centroid

Introduction: Return the centroid point of A

ST_Centroid

Format: ST_Centroid (A:geometry)

Return type: Geometry

SQL example:

SELECT ST_Centroid(polygondf.countyshape)
FROM polygondf