Yet Another Cycling Forum

General Category => The Knowledge => GPS => Topic started by: offcumden on 25 August, 2018, 09:43:35 pm

Title: Importing .gpx.kml files to Garmin Edge 200
Post by: offcumden on 25 August, 2018, 09:43:35 pm
I've downloaded several files from the organiser of a forthcoming European tour. Although they were listed as .gpx files, when they arrived on my Mac they were shown with the double file suffix .gpx.kml. When importing them into the 'New Files' folder on the Garmin, they do not automatically move over to 'Courses' when I power up.  However, if I simply remove the .kml suffix, the files migrate to 'Courses' in the normal way.  Seems alright, but I'd like to be sure before I go that this will be OK.

I've had a bit of a search on here without success. Can anybody please help?  Ta.
Title: Re: Importing .gpx.kml files to Garmin Edge 200
Post by: grams on 26 August, 2018, 12:14:53 am
If you open them in TextEdit (or similar) what do the first couple of lines look like?

I suspect they’re GPX files and some server misconfiguration is causing the KML suffix to appear erroneously.
Title: Re: Importing .gpx.kml files to Garmin Edge 200
Post by: offcumden on 26 August, 2018, 08:25:36 pm
First couple of lines:
001 Start 002 Anglické nábřeží 003 001 Start 002 001 Start 002 Anglické nábřeží 003 Americká 004 001 Start 002 Prokopova 003 Doudlevecká 004 001 Start 002 Zborovská 003 001 Start 002 Mostní 003 náměstí Milady Horákové 004 Nepomucká 005 001 Start 002 001 Start 002 Barvínková 003 004 005 001 Start 002 001 Start 002 Havlíčkova 003 Smetanova 004 Náves Republiky 005 001 Start 002 Dr. Holuba 003 Nezvěstická 004 005 006 001 Start 002 003 004 005 001

 - which means very little to me (place names in Czech Rep.). Any thoughts?
Title: Re: Importing .gpx.kml files to Garmin Edge 200
Post by: Feanor on 27 August, 2018, 05:59:39 pm
That's not a GPX file.
Certainly, the Garmin won't be able to read that.

I don't recognise it, but I've never looked into .kml files.

Perhaps some tool will be able to convert it, or contact the org and ask for actual GPX files?


Title: Re: Importing .gpx.kml files to Garmin Edge 200
Post by: offcumden on 27 August, 2018, 06:12:59 pm
Thanks, Feanor.

If I delete the .kml suffix (leaving the .gpx), then open it in Text Edit, I get:

<?xml version="1.0" encoding="utf-8"?>
<gpx creator="mapy.cz" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
   
    <wpt lat="49.7445420921" lon="13.3757525682">
        <name>001 Start</name>
    </wpt>
    <wpt lat="49.7444663197" lon="13.3801728487">
        <name>002 Anglické nábřeží</name>
    </wpt>
    <wpt lat="49.744489789" lon="13.3801902831">
        <name>003 </name>
    </wpt>
    <wpt lat="49.744489789" lon="13.3801902831">
        <name>001 Start</name>
    </wpt>
    <wpt lat="49.7454768419" lon="13.3819873631">
        <name>002 </name>
    </wpt>
    <wpt lat="49.7454768419" lon="13.3819873631">
        <name>001 Start</name>
    </wpt>
    <wpt lat="49.7444663197" lon="13.3801728487">
        <name>002 Anglické nábřeží</name>
    </wpt>
    <wpt lat="49.7433927655" lon="13.3798496425">
        <name>003 Americká</name>

- which, when loaded on to the Garmin, does appear in 'Courses', and looks much as I would expect.

Do you recognise the above as a .gpx file?
Title: Re: Importing .gpx.kml files to Garmin Edge 200
Post by: Feanor on 27 August, 2018, 06:30:03 pm
Yes, that's a GPX.

But I have no idea how opening the same file in the same plain-text-editor would give different results depending on the file extension.

Something Apple-related, perhaps?
Title: Re: Importing .gpx.kml files to Garmin Edge 200
Post by: offcumden on 27 August, 2018, 06:56:36 pm
Thanks again, Feanor.

It's certainly a bit of a mystery to me what exactly has happened here but, having (hopefully?) managed to get the Garmin to accept it, I'm not really inclined to spend a lot of time delving into the whys and wherefores.  I'll drop a line to the originator of the files to see if he knows . . . but I'm not sure that he'll be able to shed any light. As I'll be travelling with other people, it'll be interesting to see how their gps devices deal with it. And if my Garmin route-finding is less than precise, I should be able to rely on others (some of them locals) knowing the way  :)