hotosm / osm-merge

Merge data into existing OSM data.
GNU Affero General Public License v3.0
3 stars 0 forks source link

Implement highway conflation #13

Closed rsavoye closed 1 month ago

rsavoye commented 1 month ago

This implements highway conflation, currently tested with several external highway datasets. The algorithm takes two GeoJson FeatureCollection or OSM XML files, and returns a GeoJson FeatureCollection. This enables it to be used in a backend. It is heavily multi-threaded, but brute force, so not fast for large datasets, but quick for small datasets. This matches both highway geometry and tagging to identify features.

The standalone version writes both a GeoJson and OSM XML file for editing with JOSM or QGIS. For the OSM XML version, tags are automatically merged with existing features for faster validation. While this is still a bit of a work in progress, the results I've gone through are good, and I've uploaded some of it to OSM already.