[OSM-talk] setting up PostGIS, importing data

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Tue Mar 23 10:31:00 GMT 2010


Torsten Mohr <tmohr <at> s.netic.de> writes:

> 
> Hello,
...
> Now i get this error during import:
> Reading in file: /local/ftp/osm/planet-100310.osm.bz2
...
> Entity: line 529642199: parser error : xmlParseCharRef: invalid xmlChar value 
> 22
>     <tag k="name" v="Meycauayan City Northbound Entry Point" />
> /local/ftp/osm/planet-100310.osm.bz2 : failed to parse
> Error occurred, cleaning up
> 
> I can't imagine that the file is corrupt. 

It is corrupt, from the developer list:

 "The planet dump code used to turn all characters less than 32
into '?' instead of creating these character sequences. I guess he
didn't read the bit of the XML spec which says that all characters <32
are invalid except for tab / newline / carriage return[1]. It makes no
difference whether they exist as plain characters or character entities,
they are still not allowed, e.g.

$ echo "<test></test>" | xmllint - -noout
-:1: parser error : xmlParseCharRef: invalid xmlChar value 24
<test></test>

I have a committed a change which should resolve this for future dumps
in r20430 but someone needs to compile and update the copy on the
server."

Next planet dump should be OK, or you can read from the dev list about how to
update problematic characters to something acceptable.

-Jukka Rahkonen-







More information about the talk mailing list