m2p

0.1.0 • Public • Published

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

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i m2p

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    10 kB

    Total Files

    8

    Last publish

    Collaborators

    • jaycenhorton