Manipulating GPX Data
Howdy everyone,
I am fairly new to Processing, but I am currently working on a project where I would like to be able to manipulate the data I have collected on my GPS device. The data from the device is saved in a GPX file, and contains data such as longitude, latitude, altitude and speed. At present, I have created a sketch that allows me to import a GPX file into Processing. The sketch then produces a GPS trace on that particular data onto a blank background.
What I would like to do
The first thing I would like to do is manipulate the altitude data. I would like to create an effect that would automatically change the thickness of the stroke of the line depending on the altitude. (So the higher the altitude, the thicker the stroke, and vise-versa)
The second effect I would like to achieve is to manipulate the speed data. I would like the sketch to automatically add an intense colour to the stroke of the GPS trace when the user is traveling at speed, and to display a dimmer colour when the speed is minimized.
I have attached the sketch and GPX file for you to have a play around with, any help would be very muchly appreciated.
Thanks, Roy