Polygon

data class Polygon(val exteriorRing: LineString, val interiorRings: List<LineString>, val boundingBox: GeoBoundingBox? = null) : Geometry, GeoJsonObject

A GeoJSON Geometry type comprising one or more LineStrings. In all cases the first and the last Position in a LineString contain identical values.

Constructors

Link copied to clipboard
constructor(exteriorRing: LineString, interiorRings: List<LineString>, boundingBox: GeoBoundingBox? = null)

Properties

Link copied to clipboard
open override val boundingBox: GeoBoundingBox? = null
Link copied to clipboard

The exterior ring represents the outer edges of a polygon and is a LineString of at least four GeoPoint counterclockwise order.

Link copied to clipboard

The interior rings (0 or more) - LineStrings of at least four GeoPoints in clockwise order - define holes in the polygon.