autoCompleteOperator

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

Fills the closed gaps between 2D polygons using polygon boundaries and polylines as the boundary for creating new polygons.

Method Overview

Name Return Type Summary Object

Fills the gaps between polygons using the polylines as additional boundaries.

autoCompleteOperator

Method Details

execute

Method
execute(polygons, polylines){Polygon[]}

Fills the gaps between polygons using the polylines as additional boundaries.

Parameters
polygons Polygon[]

The polygons to fill.

polylines Polyline[]

The polylines to use as boundaries.

Returns
Type Description
Polygon[] Returns the new polygons that were created in the closed empty areas bounded by some of the edges of polygons and polylines. The newly created polygons do not overlap any existing polygons or polylines, and the boundary of a new polygon must contain at least one edge from polylines. Since only polygons that intersect polylines will be used, it may be necessary to prefilter the input.
Example
// Auto complete a set of polygons using polylines as boundaries
const result = autoCompleteOperator.execute(polygons, polylines);

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