FeatureCollectionBuilder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

An optional BoundingBox for this FeatureCollection.

Link copied to clipboard

Members not defined by RFC 7946.

Functions

Link copied to clipboard
fun add(feature: Feature<G, P>)

Adds a Feature to this FeatureCollection.

Link copied to clipboard
inline fun <G : Geometry, P : @Serializable Any> FeatureCollectionBuilder<in G?, in P?>.addFeature(builderAction: FeatureBuilder<G?, P?>.() -> Unit = {})
inline fun <G : Geometry?, P : @Serializable Any> FeatureCollectionBuilder<in G, in P?>.addFeature(geometry: G, builderAction: FeatureBuilder<G, P?>.() -> Unit = {})

Adds a Feature to a FeatureCollectionBuilder with geometry provided upfront.

inline fun <G : Geometry?, P> FeatureCollectionBuilder<in G, in P>.addFeature(geometry: G, properties: P, builderAction: FeatureBuilder<G, P>.() -> Unit = {})

Adds a Feature to a FeatureCollectionBuilder with both geometry and properties provided upfront.

Link copied to clipboard

Builds the FeatureCollection from the configured values.