GeometryCollection

@Serializable(with = GeometryCollectionSerializer::class)
data class GeometryCollection<out G : Geometry> @JvmOverloads constructor(val geometries: List<G>, val bbox: BoundingBox? = null) : Geometry, Collection<G> (source)

A GeometryCollection contains multiple, heterogeneous Geometry objects.

See RFC 7946 Section 3.1.8 for the full specification.

Constructors

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

Create a GeometryCollection by a number of Geometry objects.

Types

Link copied to clipboard
object Companion

Factory methods for creating and serializing GeometryCollection objects.

Properties

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

The Geometry objects in this GeometryCollection.

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: G): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<G>): Boolean
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<G>