Hello dear Malcom, good day,
now it worked: see below…:
martin@linux-wyee:~/poi_abzug/geofabrik> bzip2 -d germany.osm,bz2
i now have a large xml-file. Way too large to open it with Kwrite. The data contains all data (included restaurants) within Germany.
now i want to use the tool, called Osmosis see - (Osmosis - OpenStreetMap Wiki).
Osmosis is a great tool, an OSM data parser. (i gathered some information about the [detailed usage page](Osmosis/Detailed Usage 0.40 - OpenStreetMap Wiki) to find out more of how to use osmosis. Well, there may be other ways in **osmosis **to do it, Restaurants could be coded in OSM as a node or a way. Currently i am looking for the right repo that can be used for OpenSuse 12.1 32 Bit
There may be other ways in osmosis to do it, Restaurants could be coded in OSM as a node or a way. currently i am looking for the right repo that can be used for OpenSuse 12.1 32 Bit
Note: The following filter should leave me with a file that removes all ways and nodes that DO NOT have the value amenity=restaurant.
osmosis --read-xml input.osm --tf accept-nodes amenity=restaurant \ --tf accept-ways amenity=restaurant \ --write-xml output.osm
Afterwards i need to filter out all nodes that do not contain “amenity.restaurant”.
At the end i am tryin to get all into a CSV file ?
What is aimed: i want to have the dataset - with full description and some with only a few data… like the following
6.9441000 50.9242000 [50677] (Ital) Casa di Biase [Köln]
6.9373600 50.9291800 [50674] (Ital) Al Setaccio [Köln]
question: is this doable - can i work on osmosis to get an output like above…
btw: what can i do. i need the full data.set. can i get this somewhere
if i have all the position-data, is it possible to find the rest.
a. name of the street
b. name of the town
.. is this possible...!?
so that it looks like the following dataset;.
10.5346100 52.1613600 [38300] (Chin) Wanbao Kommissstr.9 [Wolfenbüttel]
13.2832500 52.4422600 [14167] (Ital) LaPergola Unter den Eichen 84d [Berlin]
13.3177700 52.5062900 [10625] (Chin) Good Friends Kantstr.30 [Berlin]
Not sure if that works - but i am trying to do so,I don’t think there’s a particular program that directly exports OSM to CSV. Is there a particular reason you want it into a CSV file ?
Well if i am using an application that supports imports of CSV, it might also support other file formats that .OSM data could be exported into.
BTW at the moment i need to have the osmosis-tool that runs in opensuse: where to find the repository: i did a long search in the internet and finally found out this very intersting Mirror List - does this fit? Well i am not 100 sure if that is this the path that i need…? Note: The following filter should leave me with a file that removes all ways and nodes that DO NOT have the
value amenity=restaurant
.
That can be done with:
osmosis --read-xml input.osm --tf accept-nodes amenity=restaurant \ --tf accept-ways amenity=restaurant \ --write-xml output.osm
Not sure if that works - but i am trying to do so. Hmm - i am not very sure if it works as expected. I don’t think there’s a particular program that directly exports OSM to CSV. Is there a particular reason you want it into a CSV file? Well if i am using an application that supports imports of CSV, it might also support other file formats that .OSM data could be exported into.
any ideas… on this tasks?! i am pretty new to all that GIS-stuff
greetings 