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*

  1. import "experimental/geo"
  2. geo.toRows()

Examples

  1. import "experimental/geo"
  2. from(bucket: "example-bucket")
  3. |> range(start: -1h)
  4. |> filter(fn: (r) => r._measurement == "example-measurement")
  5. |> geo.toRows()

Function definition

  1. toRows = (tables=<-, correlationKey=["_time"]) =>
  2. tables
  3. |> v1.fieldsAsCols()

Related articles

functions geo