Skip to main content

Line to Polygon

Each line as the polygon it outlines, closed if it is open, as turf.lineToPolygon. Other features pass through.

Syntax​

{ "id": "n1", "op": "line-to-polygon", "name": "line-to-polygon", "x": 0, "y": 0, "params": {} }

An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out".

Inputs​

PortTypeTakes
intableone edge

Parameters​

This operator has no parameters.

Outputs​

PortType
outtable

Details​

  • Category: Geometry
  • Operator: line-to-polygon

Older projects​

Projects saved before documents used operator classes. These convert to line-to-polygon when they open: LineToPolygonOp.