Parsing tracks with python

Started by durian, November 09, 2011, 13:20:33

0 Members and 1 Guest are viewing this topic.

durian

This is a bit non Locus related, but I'm going to ask here anyway.

I have some python scripts which parse the GPX tracklogs from Locus with minidom.parse(...). Sinds the beginning of November, the parse gives an error. When I look at the file, the error seems to be in this line: <topografix:color>c0c0c0</topografix:color> It gives a "prefix undefined". If I hand-remove this line, I can parse the GPX file without problems.

Is this error on the python side, or is there some definition missing from the GPX file header or something?

(If python has a problem, maybe other scripts have a problem too.)

Apologies if this has nothing to do with Locus.

-peter
  •  

Menion

#1
Hi durian,
  it was my mistake (that line). If you try export tracks in last version, it will not be there. Anyway when you for example export track generated for navigation, you'll there see another new scheme "locus:" ... anyway I have link in header so it should works fine. Try it please and let me know if any problems occur ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

durian

#2
Ok, I will run a test with the new version!

Thanks,
-peter
  •  

durian

#3
Parsing works fine again,

-peter
  •