Geo Linestring

geo_linestring

Builds an open GeoJSON LineString in the supplied coordinate order.

Spec

geo_linestring(coordinates)

Parameters

coordinates - JSON array containing at least two [longitude, latitude] pairs.

Return Value

A JSON geometry, or null for invalid or null coordinates.

Example

range n from 1 to 10 step 1
| sort by n asc
| summarize coordinates = make_list(pack_array(n, n))
| project geometry = geo_linestring(coordinates)
| render map2d with (MapType = "geometry")
Geometry typePositions
LineString[1,1] through [10,10], in order