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

refining osmfilter to get more out of it

0

hello dear openstreetmap experts

new to the gis-technique: i am workin with the following tools:

this

http://wiki.openstreetmap.org/wiki/DE:Osmconvert

and that

http://wiki.openstreetmap.org/wiki/DE:Osmfilter

i get the following example: wget download.geofabrik.de/openstreetmap/europe/germany.osm.pbf osmconvert germany.osm.pbf --all-to-nodes -o=germany.o5m osmfilter germany.o5m --keep="amenity=shop or shop=*" -o=shops.o5m osmconvert shops.o5m --csv="@id @lon @lat shop name" --csv-headline -o=shops.csv

that runs fine - now i want to refine:

to get such a result- [made out of xslt]

<node id="52768810" lat="48.2044749" lon="11.3249434" version="7" changeset="9490517" user="wheelmap_visitor" uid="290680" timestamp="2013-10-07T20:24:46Z">
<tag k="addr:city" v="Olching" />
<tag k="addr:country" v="DE" />
<tag k="addr:housenumber" v="72" />
<tag k="addr:postcode" v="82140" />
<tag k="addr:street" v="Hauptstraße" />
<tag k="amenity" v="restaurant" />
<tag k="cuisine" v="mexican" />
<tag k="email" v="info@cantina-olching.de" />
<tag k="name" v="La Cantina" />
<tag k="opening_hours" v="Mo-Su 17:00-01:00" />
<tag k="phone" v="+49 (8142) 444393" />
<tag k="website" v="http://www.cantina-olching.com/" />
<tag k="wheelchair" v="no" />

doable!?

asked 14 Apr '14, 15:35

say_hello_to_the_world's gravatar image

say_hello_to...
19232427
accept rate: 0%

edited 14 Apr '14, 15:38


One Answer:

0

Have you tried the simple -o shops.osm?

answered 16 Apr '14, 21:39

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%