0.1.0 • Published 5 years ago

m2p v0.1.0

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

This is a utility to merge a MultiPolygon into a single Polygon

This tool reads in a GeoJSON file containing two disconnected polygons. It finds the closest points of each polygon and then redraws the polygons with a single line connecting the two.

Setup

yarn install

Example

yarn run merge -i test.geojson -o out.json

Use it globally

Use Yarn

yarn add global m2p

Or NPM

npm install -g m2p

Then use it anywhere

m2p -i test.geojson -o output.json