a CLI utility to convert a multipolygon to a single polygon
npm install m2pThis 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.
yarn install
yarn run merge -i test.geojson -o out.json
yarn add global m2p
npm install -g m2p
m2p -i test.geojson -o output.json