add

fun add(ring: List<Position>)(source)

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

Parameters

ring

The list of Positions forming the ring.

Throws

if the ring is empty.


fun add(ring: LineString)(source)

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

Parameters

ring

The LineString whose coordinates will be used as a ring.