1.7 KiB
1.7 KiB
title | description | menu | weight | flux/v0/tags | introduced | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
geo.ST_Length() function | `geo.ST_Length()` returns the [spherical length or distance](https://mathworld.wolfram.com/SphericalDistance.html) of the specified GIS geometry. |
|
201 |
|
0.78.0 |
geo.ST_Length()
returns the spherical length or distance
of the specified GIS geometry.
Function type signature
(geometry: A, ?units: {distance: string}) => float where A: Record
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
Parameters
geometry
({{< req >}})
GIS geometry to test. Can be either point or linestring geometry.
Point geometry will always return 0.0
.
units
Record that defines the unit of measurement for distance.