PolygonBuilder

Builder for constructing Polygon objects using a DSL.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

An optional BoundingBox for this Polygon.

Link copied to clipboard

Members not defined by RFC 7946.

Functions

Link copied to clipboard
fun add(ring: List<Position>)
fun add(ring: LineString)

Adds a ring to this Polygon. The ring will be automatically closed if not already closed.

Link copied to clipboard
inline fun PolygonBuilder.addRing(builderAction: LineStringBuilder.() -> Unit)

Adds a ring to a PolygonBuilder using a DSL.

Link copied to clipboard
fun build(): Polygon

Builds the Polygon from the configured values.