ESM:
import * as linesToPolygonsOperator from "@arcgis/core/geometry/operators/linesToPolygonsOperator.js";
CDN:
const linesToPolygonsOperator = await $arcgis.import("@arcgis/core/geometry/operators/linesToPolygonsOperator.js");
Object:
@arcgis/core/geometry/operators/linesToPolygonsOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
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.
Property Overview
| Name | Type | Summary | Object |
|---|---|---|---|
Indicates if the operator supports input geometries that contain curves. | linesToPolygonsOperator |
Property Details
-
supportsCurves
PropertysupportsCurves Booleanreadonly -
Indicates if the operator supports input geometries that contain curves. The value will always be
true.
Method Overview
| Name | Return Type | Summary | Object |
|---|---|---|---|
Performs the topological lines to polygons operation. | linesToPolygonsOperator |
Method Details
-
Performs the topological lines to polygons operation.
Parametergeometries GeometryUnion[]The set of input geometries. All the geometries must have the same spatial reference.
ReturnsExample// Perform the lines to polygons operation const polygons = linesToPolygonsOperator.executeMany([polyline1, polyline2]);