Why not ask your question on the new OpenStreetMap Community Forum?

hello - i wanted to run a osmconvert & filter with the following goal - to get the following tags out of the datas:

addr:street addr:housenumber addr:city

so i decided to do the following command

./osmconvert hamburg-latest.osm.pbf --all-to-nodes -o=hamburgrestaurants_2.o5m
./osmfilter hamburgrestaurants_2.o5m --keep="amenity=restaurant" -o=restaurant_2.o5m
./osmconvert restaurant_2.o5m --csv="@id @lon @lat shop name  addr:street addr:housenumber addr:city website email" --csv-headline -o=restaurant_2.csv

but i failed - there were no streets no housenumbers and cities. Now i decidet to use overpass-API which seems to be less complicated. Can someone advice me here to go the first step.

asked 19 Apr '14, 10:46

say_hello_to_the_world's gravatar image

accept rate: 0%

edited 21 Apr '14, 16:16

neuhausr's gravatar image


osmconvert is a bit picky when is comes to specifying csv field names. Especially extra whitespace characters seem to cause some issue. In your case you'll have to remove the superfluous space character between name and addr:street to get some results according to your csv string (of course only where this data exists in OSM in the first place).

./osmconvert restaurant_2.o5m --csv="@id @lon @lat shop name addr:street addr:housenumber addr:city website email" --csv-headline -o=restaurant_2.csv
permanent link

answered 21 Apr '14, 07:27

mmd's gravatar image

accept rate: 37%

thank you for the help. It helps alot - and gives new starting points. Greetings

(13 Jun '14, 09:44) say_hello_to...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 19 Apr '14, 10:46

question was seen: 5,277 times

last updated: 13 Jun '14, 09:44

powered by OSQA