This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Address-tags in a very simple osmconvert & filter task

0

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

what is wrong with this?

asked 18 Apr '14, 16:36

say_hello_to_the_world's gravatar image

say_hello_to...
19232427
accept rate: 0%

edited 21 Apr '14, 16:14

neuhausr's gravatar image

neuhausr
7.5k870121


One Answer:

2

This is basically the same question as in your other post. Issue: there's an extra space between "name" and "addr:street" in your osmconvert csv string. Remove it and you're all set.

answered 21 Apr '14, 07:34

mmd's gravatar image

mmd
5.7k15388
accept rate: 37%

hello dear mmd - many many thanks - i will try it out and come back and report all my findings. Thx alot. your are great!

(23 Apr '14, 21:22) say_hello_to...