npm.io
1.1.1 • Published 3 years ago

geojson-flatten

Licence
BSD-2-Clause
Version
1.1.1
Deps
0
Size
16 kB
Vulns
0
Weekly
0
Stars
54

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);

Keywords