Click or drag to resize

GeometryEngineAutoComplete Method

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

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
public static IEnumerable<Polygon> AutoComplete(
	IEnumerable<Polygon> existingBoundaries,
	IEnumerable<Polyline> newBoundaries


Type: System.Collections.GenericIEnumerablePolygon
The polygons
Type: System.Collections.GenericIEnumerablePolyline
The polylines

Return Value

Type: IEnumerablePolygon
The new polygons that were created. If either existingBoundaries or newBoundaries is empty, returns an empty array.
The new polygons are created in the closed empty areas bounded by the edges of the existing polygon boundaries and the new boundary 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 the polylines. Only polygons that intersect the input polylines will participate in the operation, so it makes sense to filter the input accordingly. The geometries in existingBoundaries must all have an area, i.e. be polygons or envelopes. The geometries in newBoundaries must all be polylines. The geometries in existingBoundaries and newBoundaries must have consistent spatial references.
See Also