

  {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:Style file overview{/block}
  {block name=body}{literal}
                       
  <div xmlns="http://www.w3.org/1999/xhtml" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Style file overview</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="styles_intro.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="styles_internal_const.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_intro2"></a>Style file overview</h2></div></div></div><p>
The first and foremost important step is understanding how the style
file is laid out itself.  The format is:
</p><pre class="screen">DIRECTIVE&lt;whitespace&gt;VALUE</pre><p>
Where &lt;whitespace&gt; is one or more spaces or tabs.  There should
be no spaces or tabs at the beginning of the line; all directives start
at the left edge in column zero.
</p><p>
An example style format is shown here:
</p><div class="literallayout"><p><br />
<br />
# Format: MS S&amp;T 2002/2003<br />
# Author: Alex Mottram<br />
#   Date: 12/09/2002<br />
#<br />
<br />
DESCRIPTION 		Microsoft Streets and Trips 2002-2006<br />
EXTENSION               txt<br />
<br />
#<br />
# FILE LAYOUT DEFINITIIONS:<br />
#<br />
FIELD_DELIMITER		TAB<br />
RECORD_DELIMITER	NEWLINE<br />
BADCHARS		,"<br />
<br />
PROLOGUE	Name	Latitude	Longitude	Description	URL	Type	Container	Diff	Terr<br />
<br />
#<br />
# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:<br />
# NOTE: MS S&amp;T ONLY IMPORTS DATA, IT DOESN'T <br />
#       EXPORT THIS ANYWHERE SO WE CAN HAVE OUR <br />
#       WAY WITH THE FORMATTING. <br />
#<br />
IFIELD	SHORTNAME, "", "%s"		# Name<br />
IFIELD	LAT_DECIMAL, "", "%f"		# Latitude<br />
IFIELD	LON_DECIMAL, "", "%f"		# Longitude<br />
IFIELD	DESCRIPTION, "", "%s"		# Name 2 (Big Description)<br />
IFIELD	URL, "", "%s"			# URL<br />
IFIELD	GEOCACHE_TYPE, "", "%s"		# Geocache Type<br />
IFIELD	GEOCACHE_CONTAINER, "", "%s"	# Geocache Type<br />
IFIELD	GEOCACHE_DIFF, "", "%3.1f"	# Geocache Type<br />
IFIELD	GEOCACHE_TERR, "", "%3.1f"	# Geocache Type<br />
</p></div><p>
Each of these lines will be explained in the following sections.
</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="styles_intro.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="styles_internal_const.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Introduction to GPSBabel Styles </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Internal Constants</td></tr></table></div>
  
      {/literal}{/block}
  