[OSM-talk] osmosis Problem with bounding-polygon and v0.6?

Marco Lechner - FOSSGIS e.V. marco.lechner at fossgis.de
Thu Apr 23 20:39:17 BST 2009


hi karl,

 ./bin/osmosis --read-xml-0.6 file="path/planet-090421.osm.bz2"
compressionMethod=bzip2 --bounding-polygon-0.6 file=path/aoi.pff
--write-xml-0.6 file=path/aoi_2009-04-21_v06.osm

gives (almost) the same error as pure v0.5:

 Unable to parse xml file path/planet-090421.osm.bz2.  publicId=(null),
systemId=(null), lineNumber=6663, columnNumber=34.
    at com.bretth.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:114)
    at java.lang.Thread.run(Thread.java:636)
Caused by: org.xml.sax.SAXParseException: XML document structures must
start and end within the same entity.


Marco


Karl Newman schrieb:
> On Thu, Apr 23, 2009 at 7:06 AM, Marco Lechner - FOSSGIS e.V.
> <marco.lechner at fossgis.de <mailto:marco.lechner at fossgis.de>> wrote:
>
>     Hi,
>
>     I try to cut the planetfile from 2009-04-21 using osmosis:
>
>     ./bin/osmosis --read-xml-0.6 file=path/planet-090421.osm.bz2
>     compressionMethod=bzip2 --bp file=path/aoi.pff --write-xml-0.6
>     file=path/aoi_2009-04-21_v06.osm
>
>     and get the error message:
>
>     ...
>     Task 2-bp does not support data provided by default pipe stored at
>     level
>     1 in the default pipe stack.
>     ...
>
>     Everything worked with pre-0.6-planetfiles
>
>     If I use the new planetfile using --read-xml and --write-xml (without
>     0.6) I get as expected:
>
>     ...
>     Unable to parse xml file path/planet-090421.osm.bz2.  publicId=(null),
>     systemId=(null), lineNumber=6663, columnNumber=34.
>        at
>     com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:114)
>        at java.lang.Thread.run(Thread.java:636)
>     Caused by: org.xml.sax.SAXParseException: XML document structures must
>     start and end within the same entity.
>
>     Any idea?
>
>     Marco
>
>     P.S. md5sum from planetfile is o.k. using "latest-osmosis" downloaded
>     today (0.30) no svn-Version
>
>
> 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.
>
> Karl





More information about the talk mailing list