~/talk

Processing Open Street Map Data with Python and PostgreSQL

Talkat PyCon DE & PyData Berlin 2022 · 2022-04-11..04-13· [databases, python]
slides:none on file

OpenStreetMap is a >50GB global dataset and the Germany PBF is ~3.6GB, so the workflow uses PostgreSQL + PostGIS for storage, Python for orchestration, and command‑line tools like osmium and osm2pgsql to extract, filter and import data with Lua style scripts. A small CLI called osmproj performs prepare and report commands, writes Plotly HTML charts, and outputs counts and densities (example: Stuttgart ~11.93 wastebaskets/km², Berlin 7,489 total).

AI-written summary · about

  1. 0:00Intro
  2. 3:11What is OpenStreetMap (OSM)?
  3. 3:59OSM data types
  4. 6:22Tagging features
  5. 7:53Example tags
  6. 8:46OSM mirrors
  7. 10:07What is geospatial PostgreSQL anyways?
  8. 11:55Geographic Data Types in PostgreSQL.
  9. 12:59Go checkout the Post GIS tutorial
  10. 13:37Importing OSM data into PostgreSQL
  11. 15:54Customizing imports with Lua scripts
  12. 20:26Project requirements
  13. 21:22Let's map this data pipeline
  14. 25:18Python project layout
  15. 27:38What should it look like? -- [Report]
  16. 29:22Report findings
  17. 30:11Utilize the terminal too!
  18. 32:37Why would you use this method?
  19. 35:21Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.