geojson-flatten
transform geojson into single-parts
Last updated 2 months ago by GitHub Actions .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install geojson-flatten 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.1                                ...           latest (2 months ago)

18 Versions

  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.1.2                                ...           2 months ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           8 years ago
  • 0.2.4                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 0.2.3                                ...           8 years ago
  • 0.2.2                                ...           9 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           13 years ago
  • 0.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 169
Today 4
This Week 40
This Month 128
Last Day 6
Last Week 47
Last Month 22
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE