Skip to content
πŸŽ‰ Apache Sedona 1.9.1 is out now! πŸ—ΊοΈ Geography SQL functions, Box2D & Box3D types, raster Python UDFs & more. Read the release notes β†’

ST_Length2D

Introduction: Returns the perimeter of A. This function is an alias of ST_Length.

Warning

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

ST_Length2D

Format: ST_Length2D (A:geometry)

Return type: Double

SQL example:

SELECT ST_Length2D(polygondf.countyshape)
FROM polygondf