Family, Work, Life

Bikemap Routes on Garmin GPS

June 13th, 2009 Ansi

Moin

I love Peters Bikemap.net page. Using this service to plan all my bike tours. Unfortunately my Garmin (GPSmap 60) does not understand the gpx file from Bikemap export. I wrote this little script to modify and split the route into smaller routes. GPSmap 60 only handle 250 points per route. Therefore the script splits the route into smaller pieces, renames the note names into “rtept” resp. “rte” and uploads the route via USB to the connected garmin.

What you need to run this script are gpsbabel and the unix commands: sed, split,cut and head .

Here it is, as usually no guarantee.

#!/bin/bash
filename=$1

gpsbabel -i gpx -f ${filename} -o csv -F out.csv
split -l 200 out.csv splits
rm out.csv

for i in `ls splits*`
do
 gpsbabel -i csv -f ${i} -o gpx -F ${i}.gpx
 sed 's/wpt/rtept/' ${i}.gpx > out
 rm ${i}.gpx
 mv out ${i}.gpx
 rm ${i}

 linenumber=`wc -l ${i}.gpx | cut -d " " -f 1`
 let linenumber-=1

 sed -n 10,${linenumber}p ${i}.gpx >a.gpx

 rm ${i}.gpx

 cat ${filename} | head -n 9  >${i}.gpx
 echo "<rte>"                >>${i}.gpx
 cat a.gpx                   >>${i}.gpx
 echo "</rte>"               >>${i}.gpx
 echo "</gpx>"               >>${i}.gpx
 rm a.gpx

 sudo gpsbabel -r -i gpx -f ${i}.gpx -o garmin -F usb:0
 rm ${i}.gpx
done
  • Share/Bookmark

OpenStreetMap in one year as a video

February 7th, 2009 Ansi

Moin

ItoWorld produced an impressing Video on OpenStreetMap mapping. Its absolutely impressing how fast a community can develop something like OpenStreetMap. Crowdsourcing is not only about shifting the work towards a community. Its more about how a community can change the world. Meanwhile countries like USA or the Netherlands are disclosing their maps for OpenStreetMap. Take a look at the video and you will understand why OSM will change the world.


OSM 2008: A Year of Edits from ItoWorld on Vimeo

  • Share/Bookmark

OpenStreetMap

September 30th, 2008 Ansi

Moin

Last weekend on the Barcamp in Stuttgart (#bc0711) I learned more about OpenStreetMap. Extreme impressing! What I really liked was the tremendous power of communities. Peter gave a very good presentation on Openstreetmap.

Presentation:

Openstreetmap im Tourismus

View SlideShare presentation or Upload your own. (tags: barcamp castlecamp)

Here are the live examples:

Buenos Aires

Google:


Größere Kartenansicht

OpenStreetMap:


View Larger Map

Hanoi:

Google:


Größere Kartenansicht

OpenStreepMap:


View Larger Map

Kapstadt:

Google:


Größere Kartenansicht

OpenStreetMap:


View Larger Map

  • Share/Bookmark