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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.14 |