My command line for extracting a bounding box can serve as example:

java -jar "Osmosis\osmosis.jar" --rx "slovenia.osm.bz2" 
enableDateParsing="yes" --lp interval="600" --bb left="14.4" 
right="14.6" top="46.15" bottom="46" --wx "ljubljana.osm.bz2"

--rx = read xml (your input.osm.bz2)
--lp = log progress
--bb = bounding box limits (adjust coordinates)
--wx = write xml (adjust result filename)

it can take several hours to parse whole planet, so you might want to 
start with one of the larger extracts (continent or country).

Stefan

Fire Girl wrote:
> Wow, that is excellent.  I had this right under my nose and didn't 
> know it!
>
> I installed Java 5 on my Windows XP 64 bit machine, and then the Java 
> 5 version of Osmosis.  It took me a moment to re-orient myself.... but 
> I think I made a little progress.... but have a slight knowledge gap 
> how to parse commands with it.
>
> If I put the Java 5 version of Osmosis in a directory, and then run 
> this command from a prompt,
>
> java -jar osmosis.jar
>
> I get back:
>
> INFO: Osmosis Version 0.24.1-java5
> INFO: Preparing pipeline
> INFO: Launching pipeline execution
> INFO: Pipeline executing, waiting for completion.
> INFO: Pipeline complete.
>
> ... but I am really unsure where to go from here, and how to actually 
> run Osmosis commands as presented at that Wiki page? :-)
>
> Could you please point me in the right direction, if possible? :-)
>
>
>     ----- Original Message -----
>     From: "Stefan Baebler"
>     To: "Fire Girl"
>     Subject: Re: [OSM-dev] Question about .bz2 file parsing
>     Date: Sat, 14 Jun 2008 07:35:32 +0200
>
>
>     Try Osmosis. It's written in Java and works nicely also on windows.
>     It can read osm.bz2 and can extract bounding boxes.
>
>     http://wiki.openstreetmap.org/index.php/Osmosis
>
>     Stefan
>
>     Fire Girl wrote:
>     >
>     >
>     > Greetings
>     >
>     > But ok, are there any Windows tools for parsing a decompressed
>     > OSM file for a Country into a smaller OSM file based on a
>     > bounding box input? :)
>     >
>     > ----- Original Message -----
>     > From: "Iván Sánchez Ortega"
>     > To: dev@openstreetmap.org
>     > Subject: Re: [OSM-dev] Question about .bz2 file parsing
>     > Date: Sat, 14 Jun 2008 05:35:15 +0200
>     >
>     >
>     > El Sábado, 14 de Junio de 2008, Fire Girl escribió:
>     > > Hello, can someone be so kind to point the way to any Windows
>     based
>     > > tools, that will parse a .bz2 file directly,
>     >
>     > None! You have to decompress the file first!!!
>     >
>     > Use 7-zip/Winzip/winrar, or whatever tool you like the most. A
>     > graphical tool
>     > may clog on files > 4GB, so please also try with a command-line
>     > bunzip2 tool.
>     >
>     >
>     > Cheers,
>     > --
>     > ----------------------------------
>     > Iván Sánchez Ortega
>     >
>     > Now listening to: Sugababes - Three (2003) - [10] Too Lost in You
>     > (3:56)
>     > (96.000000%)
>     > << signature.asc >>
>     >
>     >
>     > -- See Exclusive Videos: * 10th Annual Young Hollywood Awards*
>     >
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > dev mailing list
>     > dev@openstreetmap.org
>     > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>     >
>
>
> -- 
> See Exclusive Videos: * 10th Annual Young Hollywood Awards* 
> <http://link.brightcove.com/services/player/bcpid1403465002?bclid=1527697154&bctid=1531204364>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dev mailing list
> dev@openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>   


_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

Reply via email to