FeatureCollection class

A GeoJSON FeatureCollection object - a JSON object that contains a collection of GeoJSON features. The full description is detailed in RFC 7946.

Constructors

FeatureCollection(Array<Feature<Geometry, any>>, BoundingBox)

Constructs a FeatureCollection.

Properties

bbox

The bounding box of the feature collection.

features

The collection of GeoJSON features contained in the feature collection.

type

A GeoJSON type descriptor with value "FeatureCollection".

TYPE

A static GeoJSON type descriptor for the FeatureCollection class to be used in runtime comparisons.

Constructor Details

FeatureCollection(Array<Feature<Geometry, any>>, BoundingBox)

Constructs a FeatureCollection.

new FeatureCollection(features: Array<Feature<Geometry, any>>, bbox?: BoundingBox)

Parameters

features

Array<Feature<Geometry, any>>

The collection of features that make up the feature collection.

bbox
BoundingBox

The bounding box of the feature collection.

Property Details

bbox

The bounding box of the feature collection.

bbox?: BoundingBox

Property Value

features

The collection of GeoJSON features contained in the feature collection.

features: Array<Feature<Geometry, any>>

Property Value

Array<Feature<Geometry, any>>

type

A GeoJSON type descriptor with value "FeatureCollection".

type: string

Property Value

string

TYPE

A static GeoJSON type descriptor for the FeatureCollection class to be used in runtime comparisons.

static TYPE: string

Property Value

string