Show / Hide Table of Contents

Method AutoComplete

AutoComplete(IEnumerable<Polygon>, IEnumerable<Polyline>)

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

Declaration
public static IEnumerable<Polygon> AutoComplete(IEnumerable<Polygon> existingBoundaries, IEnumerable<Polyline> newBoundaries)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Polygon> existingBoundaries

The polygons.

System.Collections.Generic.IEnumerable<Polyline> newBoundaries

The polylines.

Returns
Type Description
System.Collections.Generic.IEnumerable<Polygon>

The new polygons that were created. If either existingBoundaries or newBoundaries is empty, returns an empty array.

Remarks

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 participate in the operation, so it makes sense to filter the input accordingly.

The geometries in existingBoundaries must all have an area. They must be polygons or envelopes.

The geometries in newBoundaries must all be polylines.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.