Skip to content
Apache Sedona 1.9.0 is out now, featuring Spark 4.1 support, proj4sedona CRS transformation, Bing Tile functions, and more!

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