tryCut

fun tryCut(geometry: Geometry, cutter: Polyline): List<Geometry>

Cuts the 'geometry' into parts with the 'cutter' Polyline. When a Polyline or Polygon is cut, it is split where it intersects the cutter Polyline. The cut parts are output as a collection of geometries. All left cuts are grouped together in the first Geometry, all right cuts are grouped in the second Geometry, any uncut parts are output as separate geometries.

If the input polyline is not simple, then the operation will be performed on a simplified copy of the polyline. There is no need for you to call any simplify method. If there were no cuts then an empty ListImpl is returned.

Return

A ListImpl of Geometry.

Since

200.1.0