This object is in archive! 

Creating a GPX file

Cegam shared this question 9 years ago
Answered

Hi!


Without any knowledge in this field I tried to create a gpx file by "hijacking" a file exported by locus. I cannot import it (yet) because Locus claims there are no points to be imported. Can anyone see what's wrong here?


Thank you!


  1. xmlns:locus="http://www.locusmap.eu"

    xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">;

    <metadata>

    <desc>File with points/tracks from Locus Map/3.18.6</desc>

    </metadata>


    <name>1000 Islands Camping Resort</name> </wpt><wpt lat="44.3497546" lon="-76.05628967">

    <name>1000 Islands/Ivy Lea KOA Kampground</name> </wpt><wpt lat="44.361009" lon="-76.020011">


  2. </gpx>

Replies (6)

photo
1

>Can anyone see what's wrong here?

sure...

635e24970c6eb0c3b498b0804028ba48

This comment is in trash! Restore
photo
1

Thank you very much!


This:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>


<wpt lat="44.487645" lon="-78.451904"><name>Anchor Bay Camp Ltd</name></wpt>


<wpt lat="46.170645" lon="-77.821407"><name>Antler's Kingfisher Lodge & Campgrounds</name></wpt>


</gpx>


Allows to Import the first Name but Fails for the second. As soon as I ented the part after <gpx, the Import won't even start :( What's wrong?

This comment is in trash! Restore
photo
1

don't use "&"

This comment is in trash! Restore
photo
1

Is there a way to use special characters? I tried putting the names in "" but it didn't work.

Is there alternatively a list of forbidden characters? The list is way longer than 2 entries and I have no clue what else is in there...

This comment is in trash! Restore
photo
1

Hi,

a GPX file is a "special" XML file.

The forbidden or special characters of such a file can be found here or here.


So & should be replaced with & in the GPX file.


c.s.g.

This comment is in trash! Restore
photo
2

try <name><![CDATA[Antler's Kingfisher Lodge & Campgrounds]]></name>


sorry, no time to test it.

This comment is in trash! Restore

Replies have been locked on this page!

You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!