Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

geojson-cli-union

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geojson-cli-union

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

latest
Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

geojson

FAQs

Package last updated on 07 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts