MultiPoint

@Serializable(with = GeometrySerializer::class)
data class MultiPoint @JvmOverloads constructor(val coordinates: List<Position>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap(), val points: List<Point> = coordinates.map { Point(it) }) : Geometry

Constructors

Link copied to clipboard
constructor(vararg coordinates: Position, bbox: BoundingBox? = null, foreignMembers: Map<String, Any> = emptyMap())
constructor(coordinates: Array<DoubleArray>, bbox: BoundingBox? = null, foreignMembers: Map<String, Any> = emptyMap())
constructor(coordinates: List<Position>, bbox: BoundingBox? = null, foreignMembers: Map<String, Any> = emptyMap(), points: List<Point> = coordinates.map { Point(it) })

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val bbox: BoundingBox? = null

An optional bounding box used to represent the limits of the object's geometry.

Link copied to clipboard
Link copied to clipboard
open override val foreignMembers: Map<String, Any>

Members not described by specification ("foreign members") MAY be used in a GeoJSON document. NOTE: Every custom type, which is added as a value will be represented also as a Map<String, Any>. If deserialization of custom types are desired, this hast to be done by consumer.

Link copied to clipboard

Functions

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

Gets a JSON representation of this object.