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

geojson-flatten

CircleCI

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

cli

With a file input

$ geojson-flatten input.geojson > flattened.geojson

With stdin

$ geojson-random | geojson-flatten > flattened.geojson

Current Tags

  • 1.0.4                                ...           latest (3 months ago)

12 Versions

  • 1.0.4                                ...           3 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.0                                ...           6 years ago

Copyright 2014 - 2016 © taobao.org |