In QGIS 3.16 I've inherited a sloppy dataset of regional roads.
My problem is this:
Roads have been drawn over for updates and not deleted, leaving behind hundreds to thousands of overlapping segments representing the same street, but with slightly differing vertices.
I'd love to find a tool or write a python code that can iterate through each overlapping segment and combine nodes, keeping the total length of the two and averaging the displacement in between. Because of the number of these instances, manual editing is out of the question.
I have tried:
- Snap Nodes in QGIS - no apparent change
- Merge Linestrings in QGIS (summary = mean) - no apparent change
I don't think tools such as union, dissolve, merge, etc. will work for incongruous lines.
I've been trying to find a Python package with a function that might help, but am having trouble with the language needed to search for my needs. Most results are for lines that are displaced but otherwise identical.