[OSM-dev] Problem with 2010/03/10 planet...

Nic Roets nroets at gmail.com
Thu Mar 11 23:28:55 GMT 2010


Hello Jeffrey,

Yes, the XML is invalid. Apparently these nodes have been in the
database for a long time. See
http://www.mail-archive.com/dev@openstreetmap.org/msg08148.html

I've restarted my split like this. It will be an hour or more before I
know if it works:
bzcat /osm/planet-10*.osm.bz2 |grep -v 'Meycauayan City Northbound
Entry Point'| ...

Regards,
Nic

On Fri, Mar 12, 2010 at 1:05 AM, Jeffrey Ollie <jeff at ocjtech.us> wrote:
> Getting the following traceback trying to extract some data from the
> March 10th planet file.  I'm using osmosis 0.34.
>
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to parse xml file
>  /dev/stdin.  publicId=(null), systemId=(null), lineNumber=529642199,
> columnNumber=27.
>        at org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:113)
>        at java.lang.Thread.run(Thread.java:636)
> Caused by: org.xml.sax.SAXParseException: Character reference "&#24"
> is an invalid XML character.
>        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
>        at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown
> Source)
>        at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown
> Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
>        at org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:108)
>        ... 1 more
>
> --
> Jeff Ollie
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>




More information about the dev mailing list