[Imports] utf8 Errors running ogr2osm.py
Clifford Snow
clifford at snowandsnow.us
Sat Mar 3 00:42:51 UTC 2012
I am having troubles running ogr2osm.py. I get the following error
running ~/bin/ogr2osm/ogr2osm.py tl_2011_04019_roads.shx
Traceback (most recent call last):
File "ogr2osm/ogr2osm.py", line 741, in <module>
w.element("tag", k=tagKey.decode("utf-8"), v=tagValue.decode("utf-8"))
File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xed in position 1:
invalid continuation byte
ogr2osm does produce output. But JSOM gives the following error when
attempting to load the output file:
at java.lang.Thread.run(Thread.java:679)
Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[2,49278887]
Message: XML document structures must start and end within the same entity.
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:592)
tl_2011_04019_roads.shx was downloaded from the TIGER 2011 data. It is
about 15Mbs.
ogr2osm is the latest available from svn source. I haven't tried the
ogr2osm from the git hub.
Clifford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/imports/attachments/20120302/fc83cca6/attachment.html>
More information about the Imports
mailing list