Skip to main content

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​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
xexpr"lng"
yexpr"lat"
cellfloat0.01
weightexpr"1.0"

Outputs​

PortType
outtable

Details​

  • Category: Tables
  • Operator: grid

Older projects​

Projects saved before documents used operator classes. These convert to grid when they open: GridLayerOp.