Convert KML file from Maverick

Started by afx, August 23, 2013, 16:13:30

0 Members and 3 Guests are viewing this topic.

afx

Hi,
after Maverick is turning into abandonware I discovered Locus Pro. Nice!
But while it groks the gpx tracks from Maverick just fine, Locus chokes on the KML file with my waypoints (which I'd rather not post...).
Search did not bring me an answer ;-(

thx
afx
Life is too short for crappy images
  •  

Menion

#1
hi,
  locus has almost full support for KML files (just few specific features is not supported). Unfortunately you have to share some file for test otherwise I'll not be able to find where is problem. or you see some error message appear in Locus?

  You may share file here at public, or just send me it on mailto:locus@asamm.com">locus@asamm.com, and I'll quickly check it

  Also suggest to write shortly what you do (how you import this file)
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

afx

#2
I import via items->import data and then select the file.
logcat and kml sent via mail.

thx
afx
Life is too short for crappy images
  •  

Menion

#3
thanks for a file and log

problem is not in Locus, but in file.

You may copy it's content (or whole file) here and check it http://www.xmlvalidation.com/

You'll see that there are problems with texts (names). In valid XML file cannot be simply this

<name>Benni&Tanja</name>
You have to escape the '&' character or better put whole texts into CDATA, like this

<name><![CDATA[Benni&Tanja]]></name>
EDIT: just for your information. These three characters should never appear directly in plain text in xml '&', '<', '>' . Commonly wrote used '&', should be also written as '&amp;' , so you may replace them
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

afx

#4
Brilliant, so Maverick writes broken XML ;-(
I'll load it up in Oxygen, that should find those spots quickly.
But do i really have to use this CDATA thing?
Can't I just write &amp; ?

thx
afx
Life is too short for crappy images
  •  

Menion

#5
yes you can. CDATA is useful for example if you want to put whole HTML page into some <desc>...</desc> tag. So you don't have to escape all characters, but just put whole page into this CDATA and .. done
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

afx

#6
Thanks,
it was only that one ampersand!

thx
afx
Life is too short for crappy images
  •  

Menion

#7
perfect, glad to help ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •