<div class="gmail_quote">On Thu, Apr 23, 2009 at 7:06 AM, Marco Lechner - FOSSGIS e.V. <span dir="ltr"><<a href="mailto:marco.lechner@fossgis.de">marco.lechner@fossgis.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I try to cut the planetfile from 2009-04-21 using osmosis:<br>
<br>
./bin/osmosis --read-xml-0.6 file=path/planet-090421.osm.bz2<br>
compressionMethod=bzip2 --bp file=path/aoi.pff --write-xml-0.6<br>
file=path/aoi_2009-04-21_v06.osm<br>
<br>
and get the error message:<br>
<br>
...<br>
Task 2-bp does not support data provided by default pipe stored at level<br>
1 in the default pipe stack.<br>
...<br>
<br>
Everything worked with pre-0.6-planetfiles<br>
<br>
If I use the new planetfile using --read-xml and --write-xml (without<br>
0.6) I get as expected:<br>
<br>
...<br>
Unable to parse xml file path/planet-090421.osm.bz2. publicId=(null),<br>
systemId=(null), lineNumber=6663, columnNumber=34.<br>
at com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:114)<br>
at java.lang.Thread.run(Thread.java:636)<br>
Caused by: org.xml.sax.SAXParseException: XML document structures must<br>
start and end within the same entity.<br>
<br>
Any idea?<br>
<br>
Marco<br>
<br>
P.S. md5sum from planetfile is o.k. using "latest-osmosis" downloaded<br>
today (0.30) no svn-Version<br>
</blockquote></div><br>You had part of it right, but you need to specify 0.6 for all elements of the pipeline, including the bounding polygon task. So try using --bounding-polygon-0.6 instead of --bp. In the next release of Osmosis I believe all the tasks will default to 0.6 instead of 0.5 so you won't have to add the -0.6 suffix to the tasks.<br>
<br>Karl<br>