Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

geojson-flatten

tmcw861kBSD-2-Clause1.1.1

transform geojson into single-parts

geojson, maps, flatten

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.1.1 (2022-10-24)

Bug Fixes

  • remove path to executable as the script was removed in #93 (#95) (9d66a3e), closes #94

1.1.0 (2022-10-24)

Features

Bug Fixes

  • Remove dependabot. Fix package paths (#92) (5890845)

1.0.5 (2022-10-24)

Bug Fixes

  • Remove dependabot. Fix package paths (#92) (5890845)

1.0.4 (2020-03-17)

1.0.3 (2020-02-06)

Bug Fixes

  • Return array when given single feature with null geometry. (#27) (10dcc2c), closes #26

1.0.2 (2020-01-23)

Bug Fixes

  • package: update get-stdin to version 7.0.0 (06bdfa3)

1.0.1 (2019-01-31)

1.0.0 (2019-01-29)

0.2.3 (2019-01-29)