tryAutoComplete

fun tryAutoComplete(existingBoundaries: Iterable<Polygon>, newBoundaries: Iterable<Polyline>): List<Polygon>

Fills the closed gaps between polygons using polygon boundaries and polylines as the boundary for the new polygons. 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 prefilter the input accordingly.

All geometries in the existingBoundaries collection must have an area. They must be polygons or envelopes.

All geometries in newBoundaries collection must be polylines.

Return

the new polygons that were created. If either the existing or new boundaries are empty, or if an error occurs, returns an empty list.

Since

200.1.0