length

@JvmName(name = "lengthAsLength")
fun Geometry.length(): Length(source)

Calculates the length of the given Geometry.

If the geometry is a Polygon or a MultiPolygon, the length is the perimeter, and holes are included in the length.

If the geometry is a MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection, the length is the sum of the lengths of the individual geometries.

Return

The length of the geometry