LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-13-2014, 06:00 PM   #1
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Rep: Reputation: Disabled
osmfilter - how to test the installation with a easy example


on opensuse 13.1 i try to do some gis-works with a large file: france-latest.osm.bz2 which i gathered from here: http://download.geofabrik.de/europe.html

what do i do with that file france-latest.osm.bz2

bzcat france-latest.osm.bz2

what is aimed? i want to extract all things that belong to the POI restaurant which is
Quote:
long lat
name
adress
etc - etx.

my trials:

the very first attempt to do the job: i have the following things up and running:

Code:
package perl-XML-Twig and run xml_split
with a command available on openSUSE to split xml files named xml_split (it is part of the package perl-XML-Twig)
Now we try to run the following command (I hope we have enough hard disk space since the output is roughly 20GB).

Code:
bzcat france.osm.bz2 | xml_split -s 100M -b france -n 3 -

the second attempt:


well i think i will go and extract (an initially small) geographical area using osmosis,then i will go to look at osmfilter to extract the data (possibly having a look at osmconvert to convert the data into a format that osmfilter can understand). Also perhaps consider osmium.

well - i need to run osmosis and osmfilter
besides this i need to have osmconvert

are these packages available for opensuse

btw: i did it - see here

PHP Code:
linux-70ce:/home/martin # wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
--2014-04-13 09:54:23--  http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
Auflösen des Hostnamen »bretth.dev.openstreetmap.org (bretth.dev.openstreetmap.org)«... 128.40.168.103
Verbindungsaufbau zu bretth
.dev.openstreetmap.org (bretth.dev.openstreetmap.org)|128.40.168.103|:80... verbunden.
HTTP-Anforderung gesendetwarte auf Antwort... 200 OK
Länge
9079737 (8,7M) [application/x-gzip]
In »»osmosis-latest.tgz.1«« speichern.

100%[==========================================================================================================================================>] 9.079.737   1,41MB/s   in 6,3s   

2014
-04-13 09:54:29 (1,38 MB/s) - »»osmosis-latest.tgz.1«« gespeichert [9079737/9079737]

linux-70ce:/home/martin # mkdir osmosis
linux-70ce:/home/martin # cd osmosis







linux-70ce:/home/martin # mkdir osmosis
linux-70ce:/home/martin # cd osmosis 

btw regarding the two other toools osmconvert osmfilter - i have had a loook at the corresponding websites.should i have to install it like it is written on here :


PHP Code:
Download and build in one run:   wget -http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert 
and

PHP Code:
Download and build in one run:   wget -http://m.m.i24.cc/osmfilter.c |cc -x c - -O3 -o osmfilter 
what do you say - well i need a example where i can run osmconvert and osmfilter - in order to have good and valid examples


so i finally am sure that i have all the ingredients on my machine to work
 
  


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
LXer: Make it easy to contribute by making the software easy to test LXer Syndicated Linux News 0 06-13-2013 12:00 PM
LXer: TestDrive - Download and test Ubuntu 10.10 Maverick Meerkat ISO in a Virtual Machine the easy LXer Syndicated Linux News 0 08-17-2010 09:50 PM
LXer: Linux For Absolute Beginners: 3 Easy Ways to Test-Drive Linux LXer Syndicated Linux News 0 04-14-2009 01:51 AM
EASY scripting question - trying to figure out a test statement Elendrael Linux - Newbie 1 09-16-2007 08:52 PM
Please Test - Setup Servers with an Easy to use script paul_mat Linux - Networking 0 04-13-2006 04:19 AM


All times are GMT -5. The time now is 03:17 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