Changing line colour in gpx

45 views
Skip to first unread message

Sam P

unread,
Apr 22, 2021, 8:50:07 AM4/22/21
to OsmAnd
Hi,

I’ve got Osmand 3.90.7 for iOS running on iPhone 6. I plan to use it for rides to follow pre planned routes.

I’ve imported some gpx routes created by different programs and I’m finding that on some I can set the colour but on the ones from Gaia I can only get red no matter what I change the colour to in osmand.  I need to have different colours so I can differentiate between various routes.

Can anyone tell me how I get this functionality for the files from Gaia?

Is there an editor I can use or script line I can insert (that’s present in the files where I can change colour ) ?

Any advice would be much appreciated.

Cheers 

Sam

Andrea Guareschi

unread,
Apr 26, 2021, 5:55:20 PM4/26/21
to OsmAnd
Maybe you can try to open Gaia gpx files with the other programs and try to change e save there or you can open the gpx file with the notepad or another simple text editor and see if you find some special line that Gaia add. Or you can share the gpx file here and we check if it's a standar gpx file.

Sam P

unread,
Apr 26, 2021, 8:39:27 PM4/26/21
to OsmAnd
I ended up changing the text in the gps file so entries that were <rtept...  I changed to <trkpt...  I also had to change some of the text at the start - which I just copied across from an known good gpx.

I was then able to change the colour in OsmAnd. It was a painful process - hopefully I can work out an easier way in future.  I ended up with a really wide line and the line colour options weren't great - red was the same colour as some of the roads on the base map - blue same as the direction arrow - light blue same as the rivers .......

From my research it seems it probably works a bit better in Android.

Cheers

Sam

Andrea Guareschi

unread,
Apr 27, 2021, 5:19:19 AM4/27/21
to OsmAnd
Maybe you know it, but sometimes this converter helps a lot...or the babel one you find from that page
Reply all
Reply to author
Forward
0 new messages