FeatureCollection
data class FeatureCollection<out G : Geometry?, out P> @JvmOverloads constructor(val features: List<Feature<G, P>> = emptyList(), val bbox: BoundingBox? = null, val foreignMembers: JsonObject = EmptyForeignMembers) : Collection<Feature<G, P>> , GeoJsonObject(source)
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 Feature objects contained in this FeatureCollection is also accessible through the features property.
See RFC 7946 Section 3.3 for the full specification.
Constructors
Link copied to clipboard
constructor(features: List<Feature<G, P>> = emptyList(), bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)
constructor(vararg features: Feature<G, P>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)
Constructs a FeatureCollection from a vararg of Feature objects.
Types
Link copied to clipboard
object Companion
Factory methods for creating and serializing FeatureCollection objects.
Properties
Link copied to clipboard
An optional BoundingBox used to represent the limits of the object's Geometry.
Link copied to clipboard
Members not defined by RFC 7946.
Functions
Link copied to clipboard
Link copied to clipboard
Decodes GeoJsonObject.foreignMembers as T.
Link copied to clipboard
Returns the foreign member with the given key, or null if it is not present.