I am having troubles running ogr2osm.py. I get the following error running ~/bin/ogr2osm/ogr2osm.py tl_2011_04019_roads.shx <div><div>Traceback (most recent call last):</div><div> File "ogr2osm/ogr2osm.py", line 741, in <module></div>
<div> w.element("tag", k=tagKey.decode("utf-8"), v=tagValue.decode("utf-8"))</div><div> File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode</div><div> return codecs.utf_8_decode(input, errors, True)</div>
<div>UnicodeDecodeError: 'utf8' codec can't decode byte 0xed in position 1: invalid continuation byte</div><div><br></div><div>ogr2osm does produce output. But JSOM gives the following error when attempting to load the output file:</div>
<div><div>at java.lang.Thread.run(Thread.java:679)</div><div>Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,49278887]</div><div>Message: XML document structures must start and end within the same entity.</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:592)</div><div><br></div><div>tl_2011_04019_roads.shx was downloaded from the TIGER 2011 data. It is about 15Mbs. </div>
<div><br></div><div>ogr2osm is the latest available from svn source. <br><div><br><div><br></div>-- <br><div>Clifford</div><div><br></div>
</div></div></div></div>