require(["esri/geometry/operators/linesToPolygonsOperator"], (linesToPolygonsOperator) => { /* code goes here */ });
import * as linesToPolygonsOperator from "@arcgis/core/geometry/operators/linesToPolygonsOperator.js";
esri/geometry/operators/linesToPolygonsOperator
Performs the topological operation of breaking the input set of 2D polygons and polylines into segments and rebuilding a new set of polygons from the non-intersecting areas.
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Performs the topological lines to polygons operation. | linesToPolygonsOperator |
Method Details
-
Performs the topological lines to polygons operation.
ReturnsExample// Perform the lines to polygons operation const polygons = linesToPolygonsOperator.executeMany([polyline1, polyline2]);