Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 563 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 563 Bytes

geojson-flatten

Flatten MultiPoint, MultiPolygon, MultiLineString, and GeometryCollection geometries in GeoJSON files into simple non-complex geometries.

If a FeatureCollection is passed in, a FeatureCollection is returned. If a single Feature is passed in, an array of Features is returned.

install

npm install --save geojson-flatten

Or download geojson-flatten.js for non-browserify usage.

example

let flatten = require('geojson-flatten');

flattened = flatten(geojsonObject);