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

2009-04-23 Thread Karl Newman
On Thu, Apr 23, 2009 at 12:39 PM, Marco Lechner - FOSSGIS e.V. <
marco.lech...@fossgis.de> wrote:

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

So, it sounds like you had multiple problems. Probably your planet file is
corrupt. You could try to look at the referenced line (6663) in the unpacked
file and see if it is valid XML. Most likely you will need to re-download
the planet file.

Karl
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2009-04-23 Thread Marco Lechner - FOSSGIS e.V.
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.
> mailto:marco.lech...@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


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2009-04-23 Thread Karl Newman
On Thu, Apr 23, 2009 at 7:06 AM, Marco Lechner - FOSSGIS e.V. <
marco.lech...@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
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2009-04-23 Thread Marco Lechner - FOSSGIS e.V.
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

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk