

  {extends file="main.tpl"}
    <!DOCTYPE head PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head xmlns="http://www.w3.org/1999/xhtml">
  {block name=title}GPSBabel development:Examples{/block}
  {block name=body}
                       
  <div xmlns="http://www.w3.org/1999/xhtml" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Examples</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="style_define.html">Prev</a> </td><th width="60%" align="center">Appendix C. GPSBabel XCSV Style Files</th><td width="20%" align="right"> <a accesskey="n" href="style_notes.html">Next</a></td></tr></table><hr /></div><div xmlns="http://www.w3.org/1999/xhtml" class="section"><div class="titlepage"><div><div><h2 class="title" ><a id="style_examples"></a>Examples</h2></div></div></div><p>
Here is one example style file from the GPSBabel source.
</p><div class="literallayout"><p><br />
# gpsbabel XCSV style file<br />
#<br />
# Format: Garmin POI<br />
# Author: Robert Lipe<br />
# Date: 10/07/2005<br />
# Reference: http://forums.groundspeak.com/GC/index.php?showtopic=110641&amp;st=0&amp;#entry1752204<br />
#<br />
DESCRIPTION Garmin POI database<br />
#<br />
#<br />
# FILE LAYOUT DEFINITIIONS:<br />
#<br />
FIELD_DELIMITER COMMA<br />
RECORD_DELIMITER NEWLINE<br />
BADCHARS COMMA<br />
SHORTLEN 24<br />
<br />
#<br />
# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:<br />
#<br />
IFIELD LON_HUMAN_READABLE, "", "%08.5f"<br />
IFIELD LAT_HUMAN_READABLE, "", "%08.5f"<br />
IFIELD SHORTNAME, "", "%s"<br />
IFIELD DESCRIPTION, "", "%s"<br />
<br />
OFIELD LON_DECIMAL, "", "%08.5f"<br />
OFIELD LAT_DECIMAL, "", "%08.5f"<br />
OFIELD SHORTNAME, "", "%-.24s"<br />
OFIELD GEOCACHE_TYPE, "", " %-.4s", "no_delim_before,optional"<br />
OFIELD GEOCACHE_CONTAINER, "", "/%-.4s ", "no_delim_before,optional"<br />
OFIELD GEOCACHE_DIFF, "", "(%3.1f", "no_delim_before,optional"<br />
OFIELD GEOCACHE_TERR, "", "/%3.1f)", "no_delim_before,optional"<br />
OFIELD DESCRIPTION, "", "%-.50s"<br />
</p></div><p>
When used on a Groundspeak Pocket Query, it will output lines that
look like:
</p><div class="literallayout"><p><br />
-76.76234,38.39123,GC5370 Loca/Virt (1.0/1.0),Dude.. Wheres my Limo??<br />
-90.42345,38.55234,GCC8B Trad/Regu (2.0/2.0),Sweet Reward<br />
-90.81456,38.62456,GC3091 Trad/Regu (1.5/2.0),Matson Hill<br />
</p></div><p>
that are suitable for Garmin's POI loader.
</p><p>
For additional examples, please see the 
<code class="filename">*.style</code> files in the 
<code class="filename">style/</code> subdirectory of the GPSBabel source tree or at the <a class="ulink" href="https://github.com/gpsbabel/gpsbabel/tree/master/style" target="_top">online source.</a>.
</p></div><div xmlns="http://www.w3.org/1999/xhtml" class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="style_define.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="Styles.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="style_notes.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Defining Fields Within the File </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Miscellaneous Notes</td></tr></table></div>
  
      {/block}
  