1. OpenStreetMap and Python
Andrii V. Mishkovskyi
October 27, 2009
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 1 / 23
2. What is OpenStreetMap?
In short:
The Wikipedia of
Maps
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 2 / 23
3. What is OpenStreetMap?
Free
CC-by-SA
Constantly evolving
Easy to start
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 3 / 23
4. Languages used
Ruby site
C++ rendering, editors, utilities
Python rendering, utilities
Java utilities, editors
PHP wiki
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 4 / 23
5. Python tools
bulk upload.py
PythonOsmApi
CloudMade’s Python API
Mapnik
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 5 / 23
6. Outline
Mapnik
Other tools
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 6 / 23
7. Overview
Render tool
Written in C++
Boost.Python for bindings
Lots of input plugins
PNG, JPG, SVG, PDF output
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 7 / 23
29. Outline
Mapnik
Other tools
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 18 / 23
30. bulk upload.py
Mass imports of data
Perfect overview of working with OSM
API
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 19 / 23
31. PythonOsmApi
Thin wrapper over HTTP OSM API
Allows editing OSM data
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 20 / 23
32. CloudMade API
Shameless plug
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 21 / 23
33. CloudMade API
Access to CloudMade’s services
Routing, geocoding, tiles . . .
More coming soon
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 21 / 23
34. So. . .
OpenStreetMap is the biggest data
dump ever
Mapnik rules
APIs rule
Lots of work yet to be done
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 22 / 23
35. Links
osm.org
mapnik.org
cloudmade.com
wiki.osm.org
Andrii V. Mishkovskyi () OpenStreetMap and Python October 27, 2009 23 / 23