toFeatureCollection

Converts a GeometryCollection to a FeatureCollection by wrapping each geometry in a feature.

Keeps bbox and GeometryCollection.foreignMembers. combine and explode rebuild geometries from coordinates and drop both.

Return

A FeatureCollection containing features for each geometry.

Parameters

block

Optional configuration block applied to each created feature.