> As a test I have exported a gpx file from Strava but I'm finding that it's
> huge. It seems that there is a single <trkpt> node for every second of the
> activity - is that normal? Is it a feature of the gpx format that there is a
> node for every second?
>
> I'm looking to store this data in a database because I'd like to be able to
> plot the run on a Google map, but I feel that storing all of this data would be
> overkill. If I took say one in every 10 nodes and just stored the lat, lng and
> elevation in a json object, would that work? Obviously the resultant line on
> the map would be a 10th as detailed but I'm only trying to give an overview of
> the route anyway.
>
I have similar problem with my garmin foretrex device. Very often it
is not enough memory to upload the route.
A standard tool to reduce the size of gpx files is, in my opinion,
gpsbabel. It has a simple command line interface, and a command like
this
gpsbabel -r -i gpx -f input.gpx -x simplify,count=250 -o gpx -F output.gpx
will do the job reducing route to 250 points.
Cheers,
Jenya