GeometryCollection

@Serializable(with = GeometrySerializer::class)
data class GeometryCollection @JvmOverloads constructor(val geometries: List<Geometry>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry, Collection<Geometry>

Constructors

Link copied to clipboard
constructor(geometries: List<Geometry>, bbox: BoundingBox? = null, foreignMembers: Map<String, Any> = emptyMap())

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
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.