Skip to main content

length

Calculates the length of a geometry.

Linear geometries return their length. Areal geometries return their perimeter. Others return 0.

Parameters​

NameTypeDescription
geometryGeometryThe geometry for which the length is calculated

Returns​

number

The length of the geometry

Examples​