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
IEnumerable<Polygon> existingBoundaries

The polygons.

IEnumerable<Polyline> newBoundaries

The polylines.

Returns
Type Description
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, 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.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 100.14
In This Article
Back to top Copyright © 2022 Esri.