Gpx to favorits.xml conversion
  • Hello
    I want to convert Garmin .gpx files to favorits.xml so my waypoints show up in My Places. I have had contact to the GPSBabel forum and the GPSBabel program maybe can make this conversion if I can find out the format of lat and lon in the favorits.xml file.

    What is the net and datum of lat and lon in the favorits.xml file?

    A waypoint looks like this in the favorits.xml file:

    the same waypoint looks like this in Garmin .gps files:


    Peder
  • 6 Comments sorted by
  • Ups, the waypoints dissapeared, I try Again

    A waypoint looks like this in the favorits.xml file:
    item lat="204635168" lon="32644224" name="Fur P, Fur"
    the same waypoint looks like this in Garmin .gps files:
    wpt lat="56.837208643555641" lon="8.996131885796785"

    Peder
  • Hi Peder

    The waypoints in favourites.xml are store in a format called 'milliarcseconds' while Garmin use degrees and decimals!

    A milliarcsecond is one thousandth of a second of which there are 60 to the minute and 60 minutes to a degree. So the sum is Garmin degrees x 3600000 (60X60x1000) and ignore any decimals.

    I use an Excel spreadsheet with a formula to create the appropriate xml item entry. You must of course remember to include the '<' and '/> to ensure that your xml file remains well formed!




    Hope this helps

    Roger
  • Thanks for the answers.

    I have looked in Garmin Basecamps net and datum formats for displaying waypoints coordinates but I cannot find miliarcseconds under that name in the very large list of formats.

    And I am not sure that I understand the calculation. The following waypoints should be the same as the garmin .gpx file have been imported with Mapexplorer ( “Digger” ) and then added to favourites.

    Favourites.xml: item lat="204635168" lon="32644224" name="Fur P, Fur"
    Garmin.gpx: wpt lat="56.837208643555641" lon="8.996131885796785"

    Degrees to milliarcseconds:

    56 * 3600000 = 201600000
    8 * 3600000 = 28800000

    How do I convert garmin decimals to milliarcseconds?

    Peder
  • 56.837208643555641 * 3600000 = 204613951 miliseconds
    8.996131885796785 * 3600000 = 32386074 miliseconds
  • Hello
    Now I understand, I have made a fault when copying and pasting the waypoints. The following waypoints should be the same as the .gpx file has been imported with Mapexplorer and added to favourites.

    Garmin.gpx: wpt lat="56.84310439042747" lon="9.067835630849004"
    favourites.xml : item lat="204635168" lon="32644224" name="Fur P, Fur"/

    56,84310439042747 * 3600000 = 204635175,8055389
    9,067835630849004 * 3600000 = 32644208,27105641

    The converting made by MapExplorer and this calculation are not exactly the same. I guess that the number of digits used in MapExplorer and the number of digits used in above example are not the same? Anyone who knows why I am not getting the exactly same numbers?

    It would have been nice if MapExplorer/digger could write to favourites.xml or Navigator could read a .gpx file.

    Best regards Peder

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion