length

fun length(lineString: LineString, units: Units): Double

Calculates the length of the given LineString in the given Units.

Return

The length of the geometry in units.

Parameters

lineString

The geometry to measure

units

The unit of measurement to return the length in


fun length(multiLineString: MultiLineString, units: Units): Double

Calculates the combined length of all LineStrings from the given MultiLineString in the given Units.

Return

The length of the geometry in units.

Parameters

multiLineString

The geometry to measure

units

The unit of measurement to return the length in


fun length(polygon: Polygon, units: Units): Double

Calculates the length of perimeter the given Polygon in the given Units. Any holes in the polygon will be included in the length.

Return

The length of the geometry in units.

Parameters

polygon

The geometry to measure

units

The unit of measurement to return the length in


fun length(multiPolygon: MultiPolygon, units: Units): Double

Calculates the combined length of perimeter the Polygons in the MultiPolygon in the given Units. Any holes in the polygons will be included in the length.

Return

The length of the geometry in units.

Parameters

multiPolygon

The geometry to measure

units

The unit of measurement to return the length in