FeatureCollection

class FeatureCollection(val features: List<Feature> = emptyList(), val bbox: BoundingBox? = null) : Collection<Feature> , GeoJson

A FeatureCollection object is a collection of Feature objects. This class implements the Collection interface and can be used as a Collection directly. The list of features contained in this collection are also accessible through the features property.

See also

Constructors

Link copied to clipboard
constructor(vararg features: Feature, bbox: BoundingBox? = null)
constructor(features: List<Feature> = emptyList(), bbox: BoundingBox? = null)

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

The collection of Feature objects stored in this collection

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
operator fun component1(): List<Feature>
Link copied to clipboard
operator fun component2(): BoundingBox?
Link copied to clipboard
open operator override fun contains(element: Feature): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Feature>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<Feature>
Link copied to clipboard
open override fun json(): String

Gets a JSON representation of this object.

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