Skip to main content

Grid Features

Hexagons, squares or points of one cell size covering a bounding box, as turf.hexGrid, squareGrid and pointGrid make them. Join features to it to bin them.

Syntax​

{ "id": "n1", "op": "geo-grid", "name": "geo-grid", "x": 0, "y": 0, "params": {} }

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:cellSize, or read elsewhere as ch('geo-grid/cellSize').

Inputs​

This operator has no input ports.

Parameters​

ParameterKindDefaultChoices
shapemenu"hex"hex, square, point
cellSizefloat1
unitsmenu"kilometers"kilometers, meters, miles, nauticalmiles, feet, degrees
westfloat-74.05
southfloat40.68
eastfloat-73.9
northfloat40.82

Outputs​

PortType
outtable

Details​

Older projects​

Projects saved before documents used operator classes. These convert to geo-grid when they open: HexGridOp, PointGridOp, SquareGridOp.