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

ST_Length

Introduction: Returns the perimeter of A.

Warning

This function only supports LineString, MultiLineString, and GeometryCollections containing linear geometries. Use ST_Perimeter for polygons.

ST_Length

Format: ST_Length (A:geometry)

Return type: Double

SQL example:

SELECT ST_Length(polygondf.countyshape)
FROM polygondf