OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2010-01-04 01:25:35

greencaps
Member
Registered: 2009-10-05
Posts: 423

GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

If you want to see your .gpx files (from your Garmin or tracklogger) on an OpenStreetMap without uploading them first to osm then you can use GpxToSlippyMap.

The program just adapts the .html file from the Openlayers Track example: http://wiki.openstreetmap.org/wiki/Open … ck_example

Download a (windows only) executable here: http://tinyurl.com/yl9a7hp

Version 5-1-2010:
The program accepts .plt, .kml (f.i. eurasia.kml, america.kml) and .poly (CloudMade) files too.
Also multiple files can be dropped. For every file there will be a layer.

Version 6-1-2010:
Reducing of number of points in a track. For if a track has so many points that browsers get slow.

Version 8-1-2011:
Support for tracks in .fit files. (Tested with those from an Edge 500). Converts .fit to .gpx. (Well partially. (Only lat,lon))

Version 10 feb 2011:
Support for unicode file names.

Version 16-3-2012
Osmarender tileserver is down. You need to update or remove following two lines from the produced html file:
layerTilesAtHome = new OpenLayers.Layer.OSM.Osmarender("Osmarender");
map.addLayer(layerTilesAtHome);

Last edited by greencaps (2012-03-16 14:49:12)

Offline

#2 2010-01-04 16:20:30

MikeN
Member
Registered: 2009-09-03
Posts: 305

Re: GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

Thanks, I found a use for the example program already!

Offline

#3 2010-01-04 22:51:55

MikeN
Member
Registered: 2009-09-03
Posts: 305

Re: GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

Now for the next question: how to plot 10's of thousands of miles of GPX tracks on an OSM map, where data sample rate is 1/second?  This technique makes all browsers roll over and die on huge GPX tracks due to the quantity of data.

Offline

#4 2010-01-05 17:11:20

greencaps
Member
Registered: 2009-10-05
Posts: 423

Re: GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

Then you have to reduce the amount of points in the files.

Would you like such an option to be added?

Offline

#5 2010-01-06 13:12:36

MikeN
Member
Registered: 2009-09-03
Posts: 305

Re: GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

Yes, that would be interesting to see.  Thanks!

Offline

#6 2010-01-06 15:57:46

greencaps
Member
Registered: 2009-10-05
Posts: 423

Re: GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

Well you can have a look.

Offline

#7 2011-01-08 14:58:15

greencaps
Member
Registered: 2009-10-05
Posts: 423

Re: GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

Version 8-1-2011:
Support for tracks in .fit files. (Tested with those from an Edge 500). Converts .fit to .gpx. (Well partially)

Offline

#8 2012-03-16 14:50:07

greencaps
Member
Registered: 2009-10-05
Posts: 423

Re: GpxToSlippyMap: show your .gpx and .fit tracks on an open street map

Version 16-3-2012
Osmarender tileserver is down. You need to update or remove/outcomment following two lines from the produced html file:
layerTilesAtHome = new OpenLayers.Layer.OSM.Osmarender("Osmarender");
map.addLayer(layerTilesAtHome);

Offline

Board footer

Powered by FluxBB