<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ansi &#187; gps</title>
	<atom:link href="http://ansi.23-5.eu/tag/gps/feed/" rel="self" type="application/rss+xml" />
	<link>http://ansi.23-5.eu</link>
	<description>geek  pirat  tekki</description>
	<lastBuildDate>Thu, 29 Dec 2011 02:18:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using Garmin with linux and gpsbabel</title>
		<link>http://ansi.23-5.eu/2011/10/21/using-garmin-with-linux-and-gpsbabel/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-garmin-with-linux-and-gpsbabel</link>
		<comments>http://ansi.23-5.eu/2011/10/21/using-garmin-with-linux-and-gpsbabel/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 11:59:31 +0000</pubDate>
		<dc:creator>ansi</dc:creator>
				<category><![CDATA[Technic]]></category>
		<category><![CDATA[garmin]]></category>
		<category><![CDATA[geocaching]]></category>
		<category><![CDATA[gps]]></category>

		<guid isPermaLink="false">http://ansi.23-5.eu/?p=21</guid>
		<description><![CDATA[This post if more for myself then for others because you can find this information on many places. I bought a Garmin GPS Map 60 some time ago. It works great with Linux and the GPSBabel software. In order to transfer the loc files from the Geocaching.com side you can use this script:

#!/bin/bash
 rm ...]]></description>
			<content:encoded><![CDATA[<p>This post if more for myself then for others because you can find this information on many places. I bought a Garmin GPS Map 60 some time ago. It works great with Linux and the GPSBabel software. In order to transfer the loc files from the <a href="http://web.archive.org/web/20081120225636/http://www.geocaching.com/" target="_blank">Geocaching.com</a> side you can use this script:</p>
<pre>#!/bin/bash
 rm a.csv
 rm a.kml
 rm a.gpx
 for i in *.loc
 do
 gpsbabel -i geo -f $i -o csv,prefer_shortnames -F $i.csv
 cat  $i.csv &gt;&gt; a.csv
 rm  $i.csv
 done
 gpsbabel -i csv -f a.csv -o kml -F a.kml
 gpsbabel -i csv -f a.csv -o gpx -F a.gpx</pre>
<pre>sudo gpsbabel -i gpx -f a.gpx -o garmin -F usb:0
 sudo gpsbabel -i garmin,power_off -f usb:0</pre>
<p>This script converts all the *.loc files in one folder into one GPX and one KML file. the KML file can be placed on a webserver and then fiewed with google maps or via google earth. Here are some usefull commands:</p>
<p>Upload route:</p>
<pre>sudo gpsbabel <strong>-r</strong> -i garmin -f usb:0 -o kml -F u.kml</pre>
<p>Tracks downloaden from Garmin:</p>
<pre>sudo gpsbabel -t -i garmin -f usb:0 -o gpx -F tracks.gpx</pre>
<p>Switch the Garmin off:sudo gpsbabel -i garmin,power_off -f usb:0</p>
<p>Best Webpage I found for creating routes for bike tours is <a href="http://web.archive.org/web/20081120225636/http://www.marengo-ltd.com/map2/" target="_blank">Marengo</a></p>
<p>And now have fun. <img src="http://web.archive.org/web/20081120225636im_/http://ansi.interblc.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" /></p>
<p class="wp-flattr-button"></p> <p><a href="http://ansi.23-5.eu/?flattrss_redirect&amp;id=21&amp;md5=f497e7d08df6c2b93931edf27d554cbe" title="Flattr" target="_blank"><img src="http://ansi.23-5.eu/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://ansi.23-5.eu/2011/10/21/using-garmin-with-linux-and-gpsbabel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bikemap Routes on Garmin GPS</title>
		<link>http://ansi.23-5.eu/2011/10/21/bikemap-routes-on-garmin-gps/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bikemap-routes-on-garmin-gps</link>
		<comments>http://ansi.23-5.eu/2011/10/21/bikemap-routes-on-garmin-gps/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 11:48:24 +0000</pubDate>
		<dc:creator>ansi</dc:creator>
				<category><![CDATA[Technic]]></category>
		<category><![CDATA[garmin]]></category>
		<category><![CDATA[geocaching]]></category>
		<category><![CDATA[gps]]></category>

		<guid isPermaLink="false">http://ansi.23-5.eu/?p=16</guid>
		<description><![CDATA[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 ...]]></description>
			<content:encoded><![CDATA[<p>Moin</p>
<p>I love <a href="http://web.archive.org/web/20100823023201/http://www.bodenseepeter.de/" target="_blank">Peters</a> <a href="http://web.archive.org/web/20100823023201/http://www.bikemap.net/" target="_blank">Bikemap.net</a> 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.</p>
<p>What you need to run this script are <a href="http://web.archive.org/web/20100823023201/http://www.gpsbabel.org/" target="_blank">gpsbabel</a> and the unix commands: sed, split,cut and head .</p>
<p>Here it is, as usually no guarantee.</p>
<pre>#!/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 &gt; 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 &gt;a.gpx

 rm ${i}.gpx

 cat ${filename} | head -n 9  &gt;${i}.gpx
 echo "&lt;rte&gt;"                &gt;&gt;${i}.gpx
 cat a.gpx                   &gt;&gt;${i}.gpx
 echo "&lt;/rte&gt;"               &gt;&gt;${i}.gpx
 echo "&lt;/gpx&gt;"               &gt;&gt;${i}.gpx
 rm a.gpx

 sudo gpsbabel -r -i gpx -f ${i}.gpx -o garmin -F usb:0
 rm ${i}.gpx
done</pre>
<p class="wp-flattr-button"></p> <p><a href="http://ansi.23-5.eu/?flattrss_redirect&amp;id=16&amp;md5=0293d66f04d902b82b25f335f00f282c" title="Flattr" target="_blank"><img src="http://ansi.23-5.eu/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://ansi.23-5.eu/2011/10/21/bikemap-routes-on-garmin-gps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

