extend

fun extend(polyline: Polyline, extender: Polyline, extendOptions: Set<GeometryExtendOptions>): Polyline?

Extends a polyline using a polyline as the extender using the type of extension specified with extendOptions. The output polyline has the first and last segment of each path extended to the extender if the segments can be interpolated to intersect the extender. In the case that the segments can be extended to multiple segments of the extender, the shortest extension is chosen. Only end points for paths that are not shared by the end points of other paths are extended. If the polyline cannot be extended by the input extender, then null is returned.

Return

The extended polyline, or null if polyline could not be extended.

Since

200.1.0

Parameters

polyline

The polyline to be extended.

extender

The polyline to extend to.

extendOptions

The flag for the type of extend operation to perform.

Throws

Indicates that polyline and extender do not have equivalent spatial references.

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