This package has been deprecated

Author message:

Please use https://github.com/mfogel/geojson-clipping instead.

geojson-cli-union

0.2.1 • Public • Published

Deprecated: Please use geojson-clipping instead.

geojson-cli-union

Union/dissolve Polygons & MultiPolygons in your GeoJSON files into each other.

npm version build status test coverage

Quickstart

$ npm install -g geojson-cli-union
$ cat some-polys.geojson some-multipolys.geojson | geojson-cli-union > a-poly-or-multipoly.geojson

Usage

One or more GeoJSON objects containing Polygons and/or MultiPolygons are expected via stdin. The following geojson types are all ok:

  • Polygon
  • MultiPolygon
  • GeometryCollection of Polygons and/or MultiPolygons
  • Feature of a Polygon, a MultiPolygon, or an acceptable GeometryCollection
  • FeatureCollection of acceptable Features

If a geojson object with a differnt type is encountered (ex: a Point) a warning will be printed to stderr and the offending object will be dropped.

The geojson objects consumed on stdin may be seperated by zero or more characters of whitespace.

The union of the given Polygons and MultiPolygons will be calculated (sometimes called a dissolve operation) and the result will be written to stdout as a geojson object of type either:

  • a Polygon
  • a MultiPolygon containing non-overlapping Polygons

Options

-s / --silent

Send any warnings (normally written to stderr) straight to /dev/null.

Changelog

0.2.1

0.2

0.1.2

  • Set up CI: travis, coveralls

0.1.1

  • Add missing package

0.1

  • Initial release

Package Sidebar

Install

npm i geojson-cli-union

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

18.5 kB

Total Files

7

Last publish

Collaborators

  • mfogel