跳转至
🎉 Apache Sedona 1.9.1 已正式发布!🗺️ 新增 Geography SQL 函数、Box2D 与 Box3D 类型、栅格 Python UDF 等。查看发布说明 →

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