flatten library

Flattens any GeoJSON object into a FeatureCollection of single geometries.

Functions

flatten(GeoJSONObject geojson) FeatureCollection<GeometryObject>
Takes any GeoJSONObject and returns a FeatureCollection of simple features. The function flattens all Multi* geometries into single-geometry Features.