I imported buildings for Connecticut and for data manipulation I used python packages GeoPandas and Shapely that allow basic geometric manipulations.
My workflow was something like this:
- Use QGIS or JOSM to convert building data to GeoJson (or Shape file) format.
- Load into GeoPandas using Fiona package
- Use GeoPandas to fix tags and geometry
- Split dataset into smaller fragments and export as GeoJson files.
- Upload all files to Google Cloud and create a project in Tasking manager pointing to the files stored in Google cloud.
- Use JOSM to work one task at a time and used Conflation Plugin or Geometry replace to resolve conflicts with existing buildings.
I don’t think that there is a tool to do the conflation programmatically and preserve the history of the object at the same time. But you could go the route you suggested and upload first all buildings that don’t overlap with exiting OSM data and solve the conflicting manually in JOSM.
I personally would do this:
- Use this Overpass query inside JOSM to download all existing buildings and save them as GeoJson (You will need OpenData plugin if I am not mistaken).
- Load them, as well as your polished import dataset into GeoPandas.
- Filter out buildings that overlap between the two datasets.
- Use upload script to upload the non-conflicting new buildings. (I’ve never used this script, but worst case you can use JOSM)
Just in case links to imports and Github code:
import1, import2, Github