Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-13-2014, 06:00 PM   #1
Registered: May 2013
Posts: 222

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:

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
long lat
etc - etx.

my trials:

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

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).

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
--2014-04-13 09:54:23--
Auflösen des Hostnamen » («...
Verbindungsaufbau zu bretth (||:80... verbunden.
HTTP-Anforderung gesendetwarte auf Antwort... 200 OK
9079737 (8,7M) [application/x-gzip]
In »»osmosis-latest.tgz.1«« speichern.

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

-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 - | cc -x c - -lz -O3 -o osmconvert 

PHP Code:
Download and build in one run:   wget - |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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:33 PM.

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