MultiPolygon
data class MultiPolygon @JvmOverloads constructor(val coordinates: List<List<List<Position>>>, val bbox: BoundingBox? = null) : MultiGeometry, PolygonGeometry, Collection<Polygon> (source)
A MultiPolygon geometry represents multiple surfaces in coordinate space.
See RFC 7946 Section 3.1.7 for the full specification.
See also
Throws
if any of the lists does not represent a valid Polygon
Constructors
Link copied to clipboard
Create a MultiPolygon by a number of lists (= polygon rings) of lists (= Position objects).
Create a MultiPolygon by a number of Polygon objects.
Create a MultiPolygon by an array (= Polygon objects) of arrays (= polygon rings) of arrays (= Position objects) where each Position is represented by a DoubleArray.
Types
Link copied to clipboard
object Companion
Factory methods for creating and serializing MultiPolygon objects.