ESM:
import * as autoCompleteOperator from "@arcgis/core/geometry/operators/autoCompleteOperator.js";
CDN:
const autoCompleteOperator = await $arcgis.import("@arcgis/core/geometry/operators/autoCompleteOperator.js");
Object:
@arcgis/core/geometry/operators/autoCompleteOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
Fills the closed gaps between 2D polygons using polygon boundaries and polylines as the boundary for creating new polygons.
Property Overview
| Name | Type | Summary | Object |
|---|---|---|---|
Indicates if the operator supports input geometries that contain curves. | autoCompleteOperator |
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 |
|---|---|---|---|
Fills the gaps between polygons using the polylines as additional boundaries. | autoCompleteOperator |
Method Details
-
Fills the gaps between polygons using the polylines as additional boundaries.
ParametersReturnsType Description Polygon[] Returns the new polygons that were created in the closed empty areas bounded by some of the edges of polygonsandpolylines. The newly created polygons do not overlap any existingpolygonsorpolylines, and the boundary of a new polygon must contain at least one edge frompolylines. 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);