Grid Bin
Count rows per square cell and emit one row per cell at its center (P), with n and the weight sum w.
Syntax
{ "id": "n1", "op": "grid", "name": "grid", "x": 0, "y": 0, "params": {} }
An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:cell, or read elsewhere as ch('grid/cell').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
x | expr | "lng" | |
y | expr | "lat" | |
cell | float | 0.01 | |
weight | expr | "1.0" |
Outputs
| Port | Type |
|---|---|
out | table |
Details
- Category: Tables
- Operator:
grid
Older projects
Projects saved before documents used operator classes. These convert to grid when they open: GridLayerOp.