geo.toRows() function
The geo.toRows()
function is experimental and subject to change at any time.
By using this function, you accept the risks of experimental functions.
The geo.toRows()
function pivots data into row-wise sets base on time.
For geo-temporal datasets, output rows include lat
and lon
columns required by
many Geo package functions.
Function type: Transformation
import "experimental/geo"
geo.toRows()
Examples
import "experimental/geo"
from(bucket: "example-bucket")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == "example-measurement")
|> geo.toRows()
Function definition
toRows = (tables=<-, correlationKey=["_time"]) =>
tables
|> v1.fieldsAsCols()
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.