a-b-street / osm2streets

Convert OSM to street networks with detailed geometry
https://a-b-street.github.io/osm2streets
Apache License 2.0
102 stars 10 forks source link

Added Python Bindings for osm2streets #270

Open lukasbeuster opened 1 week ago

lukasbeuster commented 1 week ago

Hi there,

I hope you’re doing well!

This is my first-ever contribution to an open-source project, so please bear with me if anything seems off—I’m eager to learn!

I came across your project last week and found it super interesting and relevant to something I was working on: extracting sidewalk polygons in cities around the world using OSM. I really appreciate all the thought and effort you’ve already put into it—thank you for sharing!

Since I’m not familiar with JS or Wasm, setting up the JavaScript version was a bit too challenging for me. So, I decided to create Python bindings instead (I noticed this was already on the roadmap—hopefully, this aligns with your plans!).

Here’s what I’ve done:

A sample output: sample_output

You can install the package before the merge using this command, which points to my fork. The documentation already links to your main repository for post-merge clarity:


pip install --no-cache-dir -e git+https://github.com/lukasbeuster/osm2streets.git@python_wrap#egg=osm2streets_python\&subdirectory=osm2streets-py

I hope you find this valuable! I’m excited to hear your thoughts and feedback on what I’ve built so far. Please feel free to share any tips or pointers on structuring contributions (for this or future projects)—I’m here to learn!

Looking forward to your comments, Lukas