MultiPolygon

constructor(coordinates: List<List<List<Position>>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)(source)


constructor(vararg coordinates: List<List<Position>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)(source)

Create a MultiPolygon by a number of lists (= polygon rings) of lists (= Position objects).

Parameters

coordinates

The lists of polygon rings that make up the Polygon objects.

bbox

The BoundingBox of this geometry.

foreignMembers

Members not defined by RFC 7946.

Throws

if any list does not represent a valid Polygon


constructor(vararg polygons: Polygon, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)(source)

Create a MultiPolygon by a number of Polygon objects.

Parameters

polygons

The Polygon objects that make up this multi-polygon.

bbox

The BoundingBox of this geometry.

foreignMembers

Members not defined by RFC 7946.

Throws

if any of the Polygon objects does not represent a valid polygon (e.g., empty or rings not closed or fewer than 4 positions per ring).


constructor(coordinates: Array<Array<Array<DoubleArray>>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)(source)

Create a MultiPolygon by an array (= Polygon objects) of arrays (= polygon rings) of arrays (= Position objects) where each Position is represented by a DoubleArray.

Parameters

coordinates

The array of arrays of arrays of double arrays representing Polygon objects.

bbox

The BoundingBox of this geometry.

foreignMembers

Members not defined by RFC 7946.

Throws

if the array does not represent a valid MultiPolygon