LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2014, 03:09 AM   #1
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Rep: Reputation: Disabled
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?
 
Old 04-24-2014, 10:31 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,945

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by sayhello_to_the_world View Post
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
 
Old 04-24-2014, 03:00 PM   #3
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Original Poster
Rep: Reputation: Disabled
hello dear TBone


many thanks for the quick reply

Quote:
Originally Posted by TB0ne View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Request for New Office Area dzollinger General 7 05-14-2008 05:13 PM
bash script to apply sed command only to a specific text area mauran Programming 6 07-13-2007 05:38 PM
how to request a specific ip address with dhclient hypexr Linux - Networking 4 09-15-2005 11:07 PM
specific distro advice request daveoily Linux - Distributions 2 09-04-2005 06:09 PM
request for VL specific security info aus9 VectorLinux 1 12-11-2003 06:43 PM


All times are GMT -5. The time now is 07:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration