LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   request in area - an osmconvert specific search in streetmapdata (https://www.linuxquestions.org/questions/linux-newbie-8/request-in-area-an-osmconvert-specific-search-in-streetmapdata-4175502797/)

sayhello_to_the_world 04-24-2014 03:09 AM

request in area - an osmconvert specific search in streetmapdata
 
hello dear linux experts -

today i have a little issue with a osmconvert (and filter) request.

i want to do a request round towns like paris or hamburg or the like

can i perform a request to get all results round a town ... i e like so:
Code:


/tmp$ osmconvert oberbayern-latest.osm.pbf --all-to-nodes -o=blablubbla_2.o5m
/tmp$ osmfilter blablubbla_2.o5m --keep="amenity=restaurant" -o=my_gooddata_.o5m
/tmp$ osmconvert my_gooddata_.o5m --csv="@id @lon @lat shop name addr:street addr:housenumber addr:city website email" --csv-headline | more
@id    @lon    @lat    shop    name    addr:street    addr:housenumber        addr:city      website email
29950894        11.7415509      48.3978074              Parkcafe        Am Wörth        23      Freising        http://www.parkcafe-freising.de
32559987        11.7841034      47.8785126              Waldrestaurant Maxlmühle        Maxlmühle      2      Valley  http://www.maxlmuehle.de/
33047448        11.1863664      47.9072486              Hirschberg-Alm
34034075        11.6704030      48.1169551              Zum Goldenen Stern      Gartenstadtstraße      6      München
34072038        11.6707224      48.1093154              Franziskaner Garten    Friedensprome

is this possible can i do this kind of special search?

TB0ne 04-24-2014 10:31 AM

Quote:

Originally Posted by sayhello_to_the_world (Post 5158222)
hello dear linux experts -
today i have a little issue with a osmconvert (and filter) request. i want to do a request round towns like paris or hamburg or the like can i perform a request to get all results round a town ... i e like so:
Code:

/tmp$ osmconvert oberbayern-latest.osm.pbf --all-to-nodes -o=blablubbla_2.o5m
/tmp$ osmfilter blablubbla_2.o5m --keep="amenity=restaurant" -o=my_gooddata_.o5m
/tmp$ osmconvert my_gooddata_.o5m --csv="@id @lon @lat shop name addr:street addr:housenumber addr:city website email" --csv-headline | more
@id    @lon    @lat    shop    name    addr:street    addr:housenumber        addr:city      website email
29950894        11.7415509      48.3978074              Parkcafe        Am Wörth        23      Freising        http://www.parkcafe-freising.de
32559987        11.7841034      47.8785126              Waldrestaurant Maxlmühle        Maxlmühle      2      Valley  http://www.maxlmuehle.de/
33047448        11.1863664      47.9072486              Hirschberg-Alm
34034075        11.6704030      48.1169551              Zum Goldenen Stern      Gartenstadtstraße      6      München
34072038        11.6707224      48.1093154              Franziskaner Garten    Friedensprome

is this possible can i do this kind of special search?

Did you try to look this up?? Again, as has been asked of you MANY times in the past, please do some basic research of your own. If you looked at the website where the OSM tools come from, you'd see documentation sets, and a search box. Even putting this question into Google pulls up:
http://wiki.openstreetmap.org/wiki/Osmosis

...which tells you it can:
Quote:

Originally Posted by Unread Documentation
* Extract data inside a bounding box or polygon

Sounds like what you need, doesn't it??? TRY to show some effort of your own

sayhello_to_the_world 04-24-2014 03:00 PM

hello dear TBone


many thanks for the quick reply

Quote:

Originally Posted by TB0ne (Post 5158413)
Did you try to look this up?? Again, as has been asked of you MANY times in the past, please do some basic research of your own. If you looked at the website where the OSM tools come from, you'd see documentation sets, and a search box. Even putting this question into Google pulls up:
http://wiki.openstreetmap.org/wiki/Osmosis

...which tells you it can:

Sounds like what you need, doesn't it??? TRY to show some effort of your own


thats the magic - i will digg deeper and do like you adviced.

many greetings - and thanks for all the ideas you provide. they are very encouraging


All times are GMT -5. The time now is 09:51 AM.