[Pymag-devel] Crash with Newzealand OSM extracts
Status: Alpha
Brought to you by:
lhj
From: Ingo H. <in...@gm...> - 2008-12-14 14:31:13
|
Hi! First of all, thanks for your effort so far! This is currently the only practical abbroach for converting OSM's for our Magellan devices. I'm not yet on the list. And I also don't know Python at all. So I'm unable to do further debugging ATM. I used the OSM extracts from the following source: http://debian.mcmillan.net.nz/nzosm/ And I got the following errors: $ osmmag.py -v -n "New Zealand 20080607" -o New_Zealand-20080607-0503.imi -r ../../pakete/pymagellan-0.1/osmmagellan/data/osmmagrules.xml New_Zealand-20080607-0503.osm INFO Loading rules: ../../pakete/pymagellan-0.1/osmmagellan/data/osmmagrules.xml INFO Reading osm data and creating map Traceback (most recent call last): File "/usr/bin/osmmag.py", line 180, in ? main() File "/usr/bin/osmmag.py", line 176, in main bigendian=options.bigendian File "/usr/bin/osmmag.py", line 54, in osmmag data = osm.LoadOsm(osmfile, rules, m, nametags = nametaglist) File "/usr/lib/python2.4/site-packages/osmmagellan/osm.py", line 45, in __init__ self.loadOsm(filename) File "/usr/lib/python2.4/site-packages/osmmagellan/osm.py", line 56, in loadOsm parser.parse(filename) File "xml/sax/expatreader.py", line 107, in parse File "xml/sax/xmlreader.py", line 123, in parse File "xml/sax/expatreader.py", line 207, in feed File "xml/sax/expatreader.py", line 303, in end_element File "/usr/lib/python2.4/site-packages/osmmagellan/osm.py", line 104, in endElement cellelement = CellElementPolyline([self.nodes[ref] for ref in self.waynodes], KeyError: 25884869 Best regards, Ingo |