All projects

Python Script

OSM Portal Bounding Box Coordinate Extractor

Python scripts that process OpenStreetMap XML files to extract geographic bounding-box coordinates. Supports single-building lookups by site and building number, as well as batch processing of all OSM files with CSV export.

Challenge

Manually extracting bounding-box coordinates from large collections of OSM XML files is tedious and error-prone.

Approach

Created two scripts: find_coords.py for targeted single-building lookups (prints minlon,minlat,maxlon,maxlat per floor), and find_all_coords.py for batch export of all OSM files to a CSV.

Outcome

Automated coordinate extraction across entire site collections, replacing a manual per-file process.

Tools & Stack