Author Topic: problem when importing POI from kml  (Read 1587 times)

Offline ysop

  • More than Newbie
  • *
  • Posts: 22
    • View Profile
problem when importing POI from kml
« on: June 20, 2011, 22:08:03 »
I want to import POIs of campsites. The kml file is provided by
http://http://www.bordatlas.de/
Locus is reporting a problem and is not importing the POI. The reason is the element "description". I have attached a part of the file. I hope you can solve the problem so that I can use locus and the POIs in my vacation.
Thank you very much for the great app!
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11486
  • Thanked: 329 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: problem when importing POI from kml
« Reply #1 on: June 21, 2011, 07:56:30 »
Hi Ysop,
  on first quick look ... this file is not VALID kml file. It contain HTML data in description tag but this is not allowed in XML file. All these texts have to be in CDATA attribute so it have to look like this

Code: [Select]
<description>
<![CDATA[
Stellplatz aus dem <a href="http://www.bordatlas.de/">BORDATLAS</a> von Reisemobil International
<p>W&#246;rnitz</p>
<p><a href="http://www.reisemobil-international.de/bordatlas2/stellplatz2.html?id=1874">BORDATLAS 2011 Seite 594</a></p>
]]>
</description>

then it will be valid kml file and there shouldn't be any problem with import. Also if you want to use some special characters in name tag, I suggest also place it into CDATA to prevent some problems
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline ysop

  • More than Newbie
  • *
  • Posts: 22
    • View Profile
Re: problem when importing POI from kml
« Reply #2 on: June 21, 2011, 22:43:53 »
Hi Menion,

thank you for the fast response. I have uploaded the file to http://http://www.xmlvalidation.com and no error was reported. Also Google Earth is accepting the file. But nevertheless I will write a progrom to delete the element because the information is not necessary.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline berkley

  • Premium
  • Master of Locus
  • ****
  • Posts: 900
    • View Profile
  • Device: 1+1, N7
Re: problem when importing POI from kml
« Reply #3 on: June 22, 2011, 13:43:41 »
Why don't you just simply import the kml into google mymaps, open your google mymaps in locus, long click on your desired map and finally click "import" to Locus...?

Just as an option ;)
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Search before posting!!!
XDA Orbit, HTC Touch HD, SGS1, SGS2, Nexus S, S4 Active, OnePlus One, Innos D6000
OnePlus X
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11486
  • Thanked: 329 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: problem when importing POI from kml
« Reply #4 on: June 22, 2011, 13:50:02 »
also solution :)

anyway little bit out of topic ... is directly included XHTML(HTML) code in XML tag really valid?? How can I then parse it in application? Really weird ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!