reshape

fun reshape(geometry: Multipart, reshaper: Polyline): Multipart?

Reshape polygons or polylines with a single path polyline. Performs the reshape operation on a polygon or polyline using a single path polyline as the reshaper. The output geometry takes the shape of the Multi_path where it first intersects the reshaper to the last intersection. The first and last intersection points of the reshaper are chosen closest to the end points of the reshaper in the case that multiple intersections are found. For polygons, only individual paths can be reshaped. However, polylines can be reshaped across paths. If the geometry cannot be reshaped by the input reshaper, then null is returned.

Return

The reshaped polygon or polyline, or null if geometry could not be reshaped.

Since

200.1.0

Parameters

geometry

The polygon or polyline to be reshaped.

reshaper

The single path polyline reshaper.

Throws

Indicates that geometry and reshaper do not have equivalent spatial references.

Indicates that a true curve geometry was used as input when it is not supported by this operator.