geojson-dissolve
Dissolve contiguous GeoJSON (Multi)LineStrings and (Multi)Polygons into single units.
Usage
var dissolve = var line1 = type: 'LineString' coordinates: 00 00 10 10 20 20 var line2 = type: 'LineString' coordinates: 20 20 30 30 console
This will output
type: 'LineString' coordinates: 00 00 10 10 20 20 30 30
API
var dissolve =
dissolve([geojson])
or dissolve(gj1, gj2, ...)
Consumes a list of homogenous GeoJSON
objects, and returns a single GeoJSON Geometry Object, with all touching LineString
s and Polygon
s dissolved into single geometries.
Install
With npm installed, run
$ npm install geojson-dissolve
License
ISC