MultiPolygon
data class MultiPolygon @JvmOverloads constructor(val coordinates: List<List<List<Position>>>, val bbox: BoundingBox? = null, val foreignMembers: JsonObject = EmptyForeignMembers) : 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
constructor(coordinates: List<List<List<Position>>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)
constructor(vararg coordinates: List<List<Position>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)
Create a MultiPolygon by a number of lists (= polygon rings) of lists (= Position objects).
constructor(vararg polygons: Polygon, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)
Create a MultiPolygon by a number of Polygon objects.
constructor(coordinates: Array<Array<Array<DoubleArray>>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)
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.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Decodes GeoJsonObject.foreignMembers as T.
Link copied to clipboard
Returns the foreign member with the given key, or null if it is not present.