OpenStreetMap logo OpenStreetMap

PGW77's Diary

Recent diary entries

Automation of buildings and addresses

Posted by PGW77 on 27 March 2021 in English.

Automate the creation of buildings and address tags using Microsoft’s AI building footprints.

Load the building footprints into QGIS and save into a shape file limited by the canvas bounds.

Iterate through each geometry and convert to polygon.

Check if polygon contains the address point.

If it does, then save address information and building polygon for import.

If any address points remain that have not been assigned a building polygon, then add them to the map as an addressed point.

When automating the creation of the ways and nodes, get the map for the bounds of the new element and check if it has already been created. This can be done by using OSMSharp on a freshly downloaded PBF or by querying the live map by bounds.

Upload changesets by zipcode in batches or 1000 to 2000. Possible add tag to specify your import.