PolylineBuilder

constructor(polyline: Polyline?, block: PolylineBuilder.() -> Unit = {})

Creates a polyline builder from a polyline.

Prior to v100.12, only polylines without curves could be used; passing in a polyline where Geometry.hasCurves is true would throw an exception.

From v100.12, polylines with curves are supported.

Since

200.1.0

Parameters

polyline

a Polyline from which to start this builder

block

a trailing lambda parameter from within which to configure the builder.

See also


constructor(spatialReference: SpatialReference? = null, block: PolylineBuilder.() -> Unit = {})

Creates a polyline builder.

Since

200.1.0

Parameters

spatialReference

a SpatialReference from which to start this builder

block

a trailing lambda parameter from within which to configure the builder.


constructor(mutableParts: Iterable<MutablePart>, block: PolylineBuilder.() -> Unit = {})

Creates a polyline builder with a list of MutablePart.

The spatial reference of the builder will be either the spatial reference of the first part or null if there are no parts.

Since

200.1.0

Parameters

mutableParts

the parts with which to create the builder. All parts must have the same spatial reference.

block

a trailing lambda parameter from within which to configure the builder.


constructor(points: Iterable<Point>, spatialReference: SpatialReference? = null, block: PolylineBuilder.() -> Unit = {})

Creates a polyline builder with a list of points.

The spatial reference of the builder will be either the given spatial reference, or the first Point's spatial reference or null if it is not defined by both.

Since

200.1.0

Parameters

points

the points with which to create the builder. All points must have the same spatial reference.

block

a trailing lambda parameter from within which to configure the builder.