Coloring track depending speed

Global Mapper UserPosts: 10
Hello

I have tons of GPX track and I would like to color each track depending speed. How can I achieve that?

thx

Answers

• Global Mapper User Posts: 163Trusted User
One way could be this:

Is this what you are after?
2.JPG 291.5K
1.JPG 312.5K
• Global Mapper User Posts: 10
Thanks for your input.
They are several problem with your solution:
- first of all I don't have the speed as a feature (GPX file, since version 1.1, doesn't contain speed, it has to be calculated trackpoint per trackpoint
- second, if I had speed, it seems like each track would have 1 speed and so 1 color, while I would like to color each with varying color depending speed.

It would look like this for 1 track

• Global Mapper User Posts: 163Trusted User
Ah, ok.
You can do like this:

Define the style as a custom dot shape
4.JPG 422.2K
• Global Mapper User Posts: 10
Problem, I don't have speed as an attribute...

• Global Mapper User Posts: 232Trusted User
I have done this is the past. It was convoluted and as I remember it involved flipping the GPX into a projected coordinate system (metres X & Y) & exporting the locations. I them opened the GPX file into Excel, appended the X & Y's in metres & calculated velocity by using the time diference between the points and the distance travelled between the points.

I managed to make a series of points which I shaded by speed, exporting as a kmz file. I only did it once but if there was a need I would have improved the work flow. Maybe this gives you a clue to way ahead?
• Global Mapper User Posts: 10
Well!! sounds like a heavy process while I have tons of GPX file.
So seems it is not feasible straight so I will forget about it or use an other SIG
• Global Mapper User Posts: 232Trusted User
There must be a easier way, but if you have Excel you could maybe write a script?
• Posts: 66
Hi!
Maybe so? The archive contains pictures.

• Global Mapper User Posts: 232Trusted User
tikhpetr said:
Hi!
Maybe so? The archive contains pictures.

Hi, forgive me for being cautious, but I will not open a rar or zip file from a public forum. Do you have uncompressed?

Thanks
• Posts: 66
Set the correct sequence by screnshots numbers. And then they booted up at random.
• Global Mapper User Posts: 232Trusted User
Does not the GPX file you are using already have the calculated speed? The original question concerns when there is no speed data. How to calculate it.
• Posts: 66
Excuse me, here is the original. Don't be confused by the name. This is self-criticism.
https://disk.yandex.ru/d/QG4p2CKdU-m9_Q
For some reason, the forum does not load, I can only link.
• Posts: 66
Here is a screenshot of the track attribute table

• Global Mapper User Posts: 10
I am currently sick but I will take a look in your answer later on. Thanks
• Global Mapper User Posts: 232Trusted User
Hi tikhpetr,

My mistake! I see that the vertices do indeed have the speed.

Thanks for showing me,

Cheers
• Posts: 66
geomannie
Trivia! Happy to help.
Sign In or Register to comment.