import { execute, supportsCurves } from "@arcgis/core/geometry/operators/extendOperator.js";const { execute, supportsCurves } = await $arcgis.import("@arcgis/core/geometry/operators/extendOperator.js");- Since
- ArcGIS Maps SDK for JavaScript 4.31
Extend 2D polylines with a polyline.
By default, this considers both ends of parts. The old ends remain and new points are added at the extended ends. The new points have attributes that are extrapolated from adjacent existing segments.
Type definitions
Functions
execute
Performs the extend operation on a polyline using a polyline as the extender.
- Signature
-
execute (polyline1: Polyline, polyline2: Polyline, options?: Options): Polyline | null | undefined
Parameters
- Returns
- Polyline | null | undefined
Returns the extended polyline or null. The output polyline will have the first and last segment of each path extended to
polyline2if the segments can be interpolated to intersect it. In the case that the segments can be extended to multiple segments of the extender,polyline2, the shortest extension is chosen. Only end points for paths that are not shared by the end points of other paths will be extended. If the polyline cannot be extended, then null is returned.
Variables
supportsCurves
Indicates if the operator supports input geometries that contain curves.
The value will always be false.
- Type
- boolean