[go: up one dir, main page]

geojson-flatten

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i geojson-flatten

Weekly Downloads

235,326

Version

1.1.1

License

BSD-2-Clause

Unpacked Size

16 kB

Total Files

11

Last publish

Collaborators

  • tmcw