MultiPolygon

A GeoJSON MultiPolygon.

A MultiPolygon is a list of multiple Polygon instances that are grouped together.

Example

Geo.MultiPolygon(
Geo.Polygon(
Geo.LineString(
Geo.Point(Geo.Longitude(-73.958), Geo.Latitude(40.8003)),
Geo.Point(Geo.Longitude(-73.9498), Geo.Latitude(40.7968)),
Geo.Point(Geo.Longitude(-73.9737), Geo.Latitude(40.7648)),
Geo.Point(Geo.Longitude(-73.9814), Geo.Latitude(40.7681)),
Geo.Point(Geo.Longitude(-73.958), Geo.Latitude(40.8003)),
),
),
)

External resources

Constructors

Link copied to clipboard
constructor(polygons: List<Geo.Polygon>)
constructor(vararg polygons: Geo.Polygon)

Constructs a MultiPolygon instance from multiple Polygon instances.

Types

Link copied to clipboard

Properties

Link copied to clipboard

The polygons that make up this MultiPolygon.

Functions

Link copied to clipboard
open override fun toString(): String

JSON representation of this object as a BSON document.

Link copied to clipboard
open override fun writeTo(writer: BsonFieldWriter)

Writes this object to the provided writer.