[osmosis-dev] osmosis-0.38: SAXParseException on --read-xml with full planet file

Egoitz Ormaetxea egoitz.ormaetxea at gmail.com
Mon Feb 14 12:46:23 GMT 2011


Try to use this sentence :

bzcat planet-110202.osm.bz2 | osmosis --read-xml-0.6 file=- --write-null

I've the same problem using .bz2 files directly with osmosis.

2011/2/9 Hakan Tandogan <hakan at gurkensalat.com>

> Hi,
>
> while trying to process the current planet files, I am encountering a
> SAXParseException with osmosis 0.38:
>
> The planet file is correct (at least, the md5 checksum is correct). Also,
> I have not found any threads on osm-dev that there is a problem with
> miscreated planet files.
>
> Also, I was trying this with two planet files, one from January 26th and
> the other from February 2nd.
>
> Do you see any problem with the command line i'm using? My intention for
> now is to first make sure that osmosis can actually read and parse the the
> planet file. After that, i'll use it to extract certain tags and ways from
> the full dump.
>
>
> Regards,
> Hakan
>
>
> hakan at wombat planet % /home/osm/osmosis-0.38/bin/osmosis --read-xml
> file=./planet-110202.osm.bz2  --write-null
>
> Feb 9, 2011 4:05:38 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.38
> Feb 9, 2011 4:05:39 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Feb 9, 2011 4:05:39 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Launching pipeline execution.
> Feb 9, 2011 4:05:39 PM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline executing, waiting for completion.
> Feb 9, 2011 4:05:40 PM
> org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
> waitForCompletion
> SEVERE: Thread for task 1-read-xml failed
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to parse
> xml file ./planet-110202.osm.bz2.  publicId=(null), systemId=(null),
> lineNumber=3971, columnNumber=233.
>        at
> org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:113)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: org.xml.sax.SAXParseException: XML document structures must
> start and end within the same entity.
>        at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
> ...
> ...
> ...
> ...
> ...
>
>
> --
> The key to immortality is first living a life worth remembering...
>
>
>
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20110214/85aac184/attachment.html>


More information about the osmosis-dev mailing list