I have a GeoJSON with two layers. One with lines and one with nodes. I'd like to dissolve it (or at least the layer with the nodes) to one single line, by averaging the positions.

I've looked at Turf.js and Mapshaper, but couldn't find out how to do that.

The data looks like that:

enter image description here

and I would like to get something like the red line:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.