MultiPoint

@Serializable(with = MultiPointSerializer::class)
data class MultiPoint @JvmOverloads constructor(val coordinates: List<Position>, val bbox: BoundingBox? = null) : MultiGeometry, PointGeometry, Collection<Point> (source)

A MultiPoint geometry represents multiple points in coordinate space.

See RFC 7946 Section 3.1.3 for the full specification.

See also

Constructors

Link copied to clipboard
constructor(coordinates: List<Position>, bbox: BoundingBox? = null)
constructor(vararg coordinates: Position, bbox: BoundingBox? = null)

Create a MultiPoint by a number of Position objects.

constructor(vararg points: Point, bbox: BoundingBox? = null)

Create a MultiPoint by a number of Point objects.

constructor(coordinates: Array<DoubleArray>, bbox: BoundingBox? = null)

Create a MultiPoint by an array of DoubleArray objects that each represent a Position.

Types

Link copied to clipboard
object Companion

Factory methods for creating and serializing MultiPoint objects.

Properties

Link copied to clipboard
open override val bbox: BoundingBox?

The bounding box of this geometry.

Link copied to clipboard

The coordinates of this geometry.

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: Point): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Point>): Boolean
Link copied to clipboard
operator fun get(index: Int): Point

Get the point at the specified index.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Point>