Locus Map - forum

Support => Troubles & Questions => Topic started by: ThierryA on November 11, 2011, 15:51:53

Title: Bug Report on KML export
Post by: ThierryA on November 11, 2011, 15:51:53
Hello,

Just a small bug KML exported from tracks are rejected  by Google Earth for "mismatched tag"
In fact it seems that it is only non matching capital letter in line five. See the "style" tag:

<style id="track"><LineStyle><color>7f0000ff</color><width>4</width></LineStyle></Style>

As long as I'm here: I'm new to locus, but I find it awesome.
I've been using GPS for my hobby (nature photography, see www.floredefrance.com (http://www.floredefrance.com)) since 2002.
And this marks a really great change in my use of GPS: I'm going to part with my Garmin Map60CSX and go with Locus from now on !
Thanks Menion for that !!!!
Title: Re: Bug Report on KML export
Post by: Menion on November 11, 2011, 16:02:50
ahh sorry, fixed ...

nice photos!
Title: Re: Bug Report on KML export
Post by: ThierryA on November 11, 2011, 16:12:05
So it's now:
Thanks for Locus,
Thanks for the fix
AND
thanks for the appreciation  :D

I think I might have another one for you, I'm not sure.
I use GEarth to store my nature spots and now use KML to transfer them from GEarth to Locus.
As you can imagine I have a lot oft different spots and they are organized in folders and subfolders (several nested levels of those)

when I export a set of folders from GEarth and import the kml in Locus, in each folder the first POI loses it's name and icon and takes the name of it's parent folder.
The others are OK.
I hope I'm clear ?

here is the code for a sample KML with 2 folders and 3 POI in each:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
   <name>test.kml</name>
   <Style id="s_ylw-pushpin">
      <IconStyle>
         <scale>1.1</scale>
         <Icon>
            <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
         </Icon>
         <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
      </IconStyle>
   </Style>
   <StyleMap id="m_ylw-pushpin">
      <Pair>
         <key>normal</key>
         <styleUrl>#s_ylw-pushpin</styleUrl>
      </Pair>
      <Pair>
         <key>highlight</key>
         <styleUrl>#s_ylw-pushpin_hl</styleUrl>
      </Pair>
   </StyleMap>
   <Style id="s_ylw-pushpin_hl">
      <IconStyle>
         <scale>1.3</scale>
         <Icon>
            <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
         </Icon>
         <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
      </IconStyle>
   </Style>
   <Folder>
      <name>folder</name>
      <open>1</open>
      <Folder>
         <name>subfolder 1</name>
         <open>1</open>
         <Placemark>
            <name>a</name>
            <LookAt>
               <longitude>3.167446389712258</longitude>
               <latitude>50.63747651327358</latitude>
               <altitude>0</altitude>
               <heading>0.01211772848146568</heading>
               <tilt>0</tilt>
               <range>1336.07809688662</range>
               <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
            </LookAt>
            <styleUrl>#m_ylw-pushpin</styleUrl>
            <Point>
               <coordinates>3.162160352829366,50.63894418213126,0</coordinates>
            </Point>
         </Placemark>
         <Placemark>
            <name>b</name>
            <LookAt>
               <longitude>3.166601235583317</longitude>
               <latitude>50.63747662455689</latitude>
               <altitude>0</altitude>
               <heading>0.01146429870697283</heading>
               <tilt>0</tilt>
               <range>1336.845144770716</range>
               <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
            </LookAt>
            <styleUrl>#m_ylw-pushpin</styleUrl>
            <Point>
               <coordinates>3.160497979313603,50.63668020126185,0</coordinates>
            </Point>
         </Placemark>
         <Placemark>
            <name>c</name>
            <LookAt>
               <longitude>3.166601235583317</longitude>
               <latitude>50.63747662455689</latitude>
               <altitude>0</altitude>
               <heading>0.01146429865539894</heading>
               <tilt>0</tilt>
               <range>1336.845144761734</range>
               <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
            </LookAt>
            <styleUrl>#m_ylw-pushpin</styleUrl>
            <Point>
               <coordinates>3.166916303445078,50.63766006095695,0</coordinates>
            </Point>
         </Placemark>
      </Folder>
      <Folder>
         <name>subfolder 2</name>
         <open>1</open>
         <Placemark>
            <name>1</name>
            <LookAt>
               <longitude>3.166601235583317</longitude>
               <latitude>50.63747662455689</latitude>
               <altitude>0</altitude>
               <heading>0.01146429857123629</heading>
               <tilt>0</tilt>
               <range>1336.845144746206</range>
               <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
            </LookAt>
            <styleUrl>#m_ylw-pushpin</styleUrl>
            <Point>
               <coordinates>3.17319766302643,50.6367844323056,0</coordinates>
            </Point>
         </Placemark>
         <Placemark>
            <name>2</name>
            <LookAt>
               <longitude>3.172620483072539</longitude>
               <latitude>50.63443892668632</latitude>
               <altitude>0</altitude>
               <heading>0.01611803188804719</heading>
               <tilt>0</tilt>
               <range>1339.339455785437</range>
               <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
            </LookAt>
            <styleUrl>#m_ylw-pushpin</styleUrl>
            <Point>
               <coordinates>3.172458776311298,50.63261419816666,0</coordinates>
            </Point>
         </Placemark>
         <Placemark>
            <name>3</name>
            <LookAt>
               <longitude>3.18003191204024</longitude>
               <latitude>50.63272922180087</latitude>
               <altitude>0</altitude>
               <heading>0.02184774167944328</heading>
               <tilt>0</tilt>
               <range>1334.449843493965</range>
               <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
            </LookAt>
            <styleUrl>#m_ylw-pushpin</styleUrl>
            <Point>
               <coordinates>3.186453096527886,50.62934637491512,0</coordinates>
            </Point>
         </Placemark>
      </Folder>
   </Folder>
</Document>
</kml>
Title: Re: Bug Report on KML export
Post by: Menion on November 11, 2011, 18:19:12
ah, sorry ... mistake on my side. Fixed :)
Title: Re: Bug Report on KML export
Post by: ThierryA on November 11, 2011, 18:28:52
That was pretty fast !

Thanks again for a really nice piece of software !!!!
Right now I can't think of something I could need that isn't already here.