linesToPolygonsOperator

AMD: require(["esri/geometry/operators/linesToPolygonsOperator"], (linesToPolygonsOperator) => { /* code goes here */ });
ESM: import * as linesToPolygonsOperator from "@arcgis/core/geometry/operators/linesToPolygonsOperator.js";
Object: esri/geometry/operators/linesToPolygonsOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
beta

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

executeMany

Method
executeMany(geometries){Polygon[]}

Performs the topological lines to polygons operation.

Parameter
geometries Geometry[]

The set of input geometries.

Returns
Type Description
Polygon[] Returns the result of polygons.
Example
// Perform the lines to polygons operation
const polygons = linesToPolygonsOperator.executeMany([polyline1, polyline2]);

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

The developer dashboard has moved

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close