PolygonBuilder

fun PolygonBuilder(polygon: Polygon?, block: PolygonBuilder.() -> Unit = {})

Creates a polygon builder from a polygon.

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

From v100.12, polygons with curves are supported.

Since

200.1.0

See also

Parameters

polygon

a Polygon from which to start this builder

block

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


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

Creates a polygon 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.


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

Creates a polygon 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.


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

Creates a polygon 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.