geohackweek / vector

Vector Tutorial
https://geohackweek.github.io/vector/
Other
11 stars 5 forks source link

Add OSM / OSMnx examples #23

Open emiliom opened 5 years ago

emiliom commented 5 years ago

From my post to Slack channel: Reminded me of how cool OSMnx seemed the first time I learned about it! I've been tickled to see how applicable the network/graph/NetworkX tools would be to handling OSM river networks and other water bodies. I've been impressed seeing the quality of coverage for smaller water bodies in OSM in some developing countries. I just saw this cool paper from the main OSMnx developer, on City Street Orientations around the World. The plot of street grid orientations in cities across the world is awesome!

emiliom commented 5 years ago

OSMnx is focused on street networks, though it does facilitate other types of OSM data. Still, other Python APIs may be more appropriate:

Accessing natural features

emiliom commented 5 years ago

Nice, recent notebook from Shay, where she uses OSMnx for buildings, areas and streets: https://github.com/shaystrong/sagely/blob/master/osm_ml_training.ipynb

emiliom commented 5 years ago

From Friedrich, May 5:

I think the main addition to the existing tutorials is pulling in raster / vector data on the fly from open data sources, using a predefined lat lon box. This will allow us to easily switch between hotosm campaign target areas, as needed, and provide participants with a useful starting point moving beyond Geohack to explore these data at any location around the world.

Attached is a gist (srtm_example.html) of what that might look like, in this case using the elevation package to pull in SRTM raster data. The target area corresponds to hotosm task 5678 with the following bounding box [104.917171, 16.330147, 105.805508, 15.294198]

The hotosm task used to kickoff Geohack will cover a different area. Chase Stephens from OSM Seattle (CC'ed) will try to secure a clean task for us (~1 month in advance) which focuses on delineating buildings, as is the focus for task 5678.

From here I leave it to you which open data sources to pull in and how to work that into the tutorials. Some ideas on general objectives:

Vector tutorial:

emiliom commented 5 years ago

I've placed the first version of the notebook here: https://github.com/geohackweek/tutorial_contents/blob/master/vector/notebooks/OSM_OSMnx_GHWhotosm.ipynb

It runs with a conda environment created with https://github.com/geohackweek/tutorial_contents/blob/master/vector/environment.yml