[OSM-dev] osmosis, tee and bounding boxes
Frederik Ramm
frederik at remote.org
Sun Sep 7 19:31:39 BST 2008
Hi,
> I'm trying to split an OSM file into 4 regions defined by bounding
> boxes. When I use the following command line options:
[...]
> I get 3 files with identical content and one with no OSM data inside
> (SloveniaGarminSE.osm).
Works for me:
$ osmosis --rx excerpts/europe/slovenia.osm --tee 4 --bounding-box
left=15 top=46 right=17 bottom=45 --bounding-box left=15 bottom=46
right=17 top=47 --bounding-box right=15 top=46 left=13 bottom=45
--bounding-box right=15 bottom=46 left=13 top=47 --write-xml
SloveniaGarminSE.osm --write-xml SloveniaGarminNE.osm --write-xml
SloveniaGarminSW.osm --write-xml SloveniaGarminNW.osm
Sep 7, 2008 8:25:53 PM com.bretth.osmosis.core.Osmosis main
INFO: Osmosis Version 0.24
Sep 7, 2008 8:25:54 PM com.bretth.osmosis.core.Osmosis main
INFO: Preparing pipeline.
Sep 7, 2008 8:25:54 PM com.bretth.osmosis.core.Osmosis main
INFO: Launching pipeline execution.
Sep 7, 2008 8:25:54 PM com.bretth.osmosis.core.Osmosis main
INFO: Pipeline executing, waiting for completion.
Sep 7, 2008 8:25:59 PM com.bretth.osmosis.core.Osmosis main
INFO: Pipeline complete.
$ ls -latr Slo*
-rw-r--r-- 1 fred osm 4940978 2008-09-07 20:25 SloveniaGarminSW.osm
-rw-r--r-- 1 fred osm 995899 2008-09-07 20:25 SloveniaGarminSE.osm
-rw-r--r-- 1 fred osm 13642351 2008-09-07 20:25 SloveniaGarminNW.osm
-rw-r--r-- 1 fred osm 15023271 2008-09-07 20:25 SloveniaGarminNE.osm
Maybe you have a newer Osmosis version and the assignment of the
different i/o streams has changed. Try playing with the order of options
(try alternating --bounding-box and --write-xml) or assign the pipes
explicitly.
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the dev
mailing list