geo.ST_LineString() function

geo.ST_LineString() is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

geo.ST_LineString() converts a series of geographic points into linestring.

Group data into meaningful, ordered paths to before converting to linestring. Rows in each table must have lat and lon columns. Output tables contain a single row with a st_linestring column containing the resulting linestring.

Function type signature
(<-tables: stream[{A with lon: C, lat: B}]) => stream[D] where D: Record
For more information, see Function type signatures.



Input data. Default is piped-forward data (<-).


Convert a series of geographic points into linestring

import "experimental/geo"

    |> geo.ST_LineString()

View example input and ouput

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.