News:

Your username and password for these discussion forums are unique to the forums. Your forum login information is separate from your My Adventure Cycling login information, and your login info for the Cyclosource online store. You will need to create a separate login for each of these. However, to make things a bit easier, you can use the same email and password for all three accounts. Also, please note that your login information for the forums is not connected to your Adventure Cycling membership number. We apologize for any inconvenience caused.

We have blocked registrations from several countries because of the large quantities of spam that originate there. If the forum denies your legitimate registration, please ask our administrator for an exception. webmaster@adventurecycling.org will need your IP address, which you can find at many web sites, including http://whatismyipaddress.com.

Author
Topic: GPX file splits when uploading (Read 3178 times)

When I try to upload a GPX from ACA it splits into several files (does this in RideWithGPS) and when I upload into Google Maps, it only loads the first section from the GPX file. if I edit this as an XML file, again the data ends on the first section. Any clues on how to resolve this? Thanks

I believe that each ACA GPX file represents a paper map and has a <rte> section for each map panel. I suspect only the first <rte> is being loaded.Check this http://tsteven4.qwestoffice.net/for the combined map sections.

I am trying to load up each segment into both google maps and RideWithGps so i can split the route into segments which suit me. Currently each file is made up of several parts of around 35-60kms, when i load it to RideWithGPS each i have 10 files for section 1 and cant join them together (or don't know how to do it - I imagine there is a solution).

When I load the routes with services to Google Maps only the first small segment (60km) of the file loads up. So for instance on the TransAm Trail, on section 1 I only get Astoria down the coast loading up, the other 10 mini segments dont load up.

Makes complete sense to me. What you want to do is concatenate the map file sections together and then split that concatenated route into your custom segmentation. You can do this manually fairly easily, albeit tedious. Knowing XML and the GPX file structure will also help. Use a text editor such as Notepad++ and use the Language setting XML. 1. copy the GPX file to a new GPX file. 2. in the new file remove all waypoints.(<wpt......></wpt> )to ease the process. 3. remove all </rte><rte><name>...</name><extensions>...</extensions> sequences. the first <rte> and last </rte> remain. 4. load into your GPX Viewer to see if the result is a single line and is correct. 5. at the end of each new section, after the section's ending </rtept> tag, insert a </rte><rte><name>new section name</name><extensions>copy data</extensions> sequence. 6. load into a GPX Viewer and check if it is what you want.You can merge the waypoints (<wpt ....>...</wpt> back into your new file and you should have what you want.

You can copy and paste across the ACA map files with an text editor like Notepad++ too.

Not knowing your comfort level manually editing files this may not be a viable solution for you.

You will notice the file contains waypoints and routes. The routes are usually at the bottom of the list

Select each route and "Create Track from Route"

Once you have the tracks, select all of them and select to "Join Tracks"

Export or save the final track

This option gives you the opportunity to edit the route in the software while you are at it.

Note that "Tracks" are different from "Routes" in GPX language, especially with Garmin, as there are limits to each. In general Tracks work more universally and reliably. Routes are more suitable for devices with maps to give navigation prompts.

Over time I have developed my own map editor which may be of some interest. The goal was to be able to use the ACA GPX files to custom build routes. For example the Northern Tier, Lake Erie, and North Lakes routes. I personally don't use a gps device for real time navigation so I am not certain how well the GPX files would work in that regard. But to the OP there may be some interest.http://screencast.com/t/N4i26ssP8pU is a video overview of my map editor.