Workshop on Using OpenStreetMap Data
I started by presenting some slides from my OpenTech OpenStreetMap developer ecosystem presentation which highlights the central role of raw geodata, and gradually builds up a picture culminating in this diagram (see above link for the full build-up and explanation)
Also a re-use of the slide explaining different levels of OpenStreetMap use which developers and data user organisations might consider.
Then it was on to the live demos touring around various different topics and tools. I don’t think I actually timed it well enough to get through all these things in either of the two hour-long sessions, but the following were things I intended to at least note briefly, if not doing a full-on demo. I’ll resist the temptation to flesh this out with more text. Brief notes and lots of links is the best way.
Workshop demo notes:
./osmosis-0.41/bin/osmosis \ --read-pbf london.osm.pbf \ --bounding-box top=51.5398 left=-0.2018 bottom=51.489 right=-0.0534 \ completeWays=true \ --write-pbf central-london.osm.pbf
./osmosis-0.41/bin/osmosis \ --read-pbf central-london.osm.pbf \ --bounding-box top=51.523351 left=-0.133344 bottom=51.522196 right=-0.131353 \ completeWays=true \ --write-xml small-UCL-extract.osm
bzcat london.osm.bz2 | ./osmosis-0.41/bin/osmosis \ --read-xml file=-\ --bounding-box top=51.523351 left=-0.133344 bottom=51.522196 right=-0.131353 \ completeWays=true \ --write-xml --write-xml file=-\ | bzip2 > small-UCL-extract.osm.bz2
./osmosis-0.41/bin/osmosis \ --read-pbf central-london.osm.pbf \ --tf accept-ways shop=supermarket \ --tf reject-relations \ --used-node \ --write-xml supermarkets-ways.osm
./osmosis-0.41/bin/osmosis \ --read-pbf central-london.osm.pbf \ --tf accept-nodes shop=supermarket \ --tf reject-ways \ --tf reject-relations \ --write-xml supermarkets-nodes.osm
./osmosis-0.41/bin/osmosis \ --read-xml supermarkets-ways.osm \ --read-xml supermarkets-nodes.osm \ --merge \ --write-xml supermarkets.osm
./osmconvert supermarkets.osm --all-to-nodes >supermarkets-all-nodes.osm
./osmconvert supermarkets-all-nodes.osm --csv="@lon @lat name"
I was a little wrong-footed from the start, and I need to apologise for this. I couldn’t get my laptop onto the internet. I could blame the over-complicated university wifi, but it was my own fault for turning up 2 minutes before running the workshop… which was my boss’ fault for organising a lunchtime client meeting immediately beforehand, then leaving at the time when I needed to be leaving. Anyway, I was able to fuddle along using two different computers to demonstrate most of the intended topics. …Oh and by the way, in all the confusion I also managed lose my apple power charger (white square thing). Anyone got it?