Skip to content

MultiPoint

A GeoJSON MultiPoint.

A MultiPoint is a list of multiple Point instances that are grouped together.

Unlike LineString, which implies that the points are connected in order, the points in Geo.MultiPoint are in no particular order and are not meant to be connected.

Example

Geo.MultiPoint(
    Geo.Point(Geo.Longitude(-73.9580), 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)),
)

External resources

Constructors

MultiPoint

constructor(points: List<Geo.Point>)
constructor(vararg points: Geo.Point)

Constructs a MultiPoint instance from multiple Point instances.

Types

Serializer

Properties

points

The points that make up this MultiPoint.

Functions

toString

open override fun toString(): String

JSON representation of this object as a BSON document.

writeTo

open override fun writeTo(writer: BsonFieldWriter)

Writes this object to the provided writer.