
GPS-
Ba-
bel
XCSV
Style
Files
101
Style Constant: CRNEWLINE
Maps to Char(s): \r\n
Style Constant: TAB
Maps to Char(s): \t
Style Constant: SPACE
Maps to Char(s): <space>
Style Constant: HASH
Maps to Char(s): #
Style Constant: PIPE
Maps to Char(s): |
Style Constant: WHITESPACE
Maps to Char(s): see below
WHITESPACE
The WHITESPACE constant has special properties. When reading data, WHITESPACE refers to sequen-
tial runs of SPACES and/or TABS. When writing data, WHITESPACE is always a single SPACE.
For example, the following line:
SOME_NAME 30.1208 -91.1365 SOME OTHER NAME
Parses into the following data fields:
SOME_NAME,30.1208,-91.1365,SOME,OTHER,NAME
COMMENTS
Anything after a hash (#) on a line is not parsed. For example:
#THIS ENTIRE LINE IS A COMMENT.
#FIELD LAT_DECIMAL, "", "%f" THIS ENTIRE LINE IS A COMMENT
FIELD LAT_DECIMAL, "", "%f" # ONLY THIS SENTENCE IS A COMMENT.
Global Properties of the File
There are a few available directives to describe general traits of the file being described and not specific
data within the file itself.
DESCRIPTION
This is the description of the file format being described. This text appears in the help screens and in menus
used by the various GUI wrappers.
EXTENSION
This directive gives the filename extension generally associated with this file.
ENCODING
Describes the character set used by this format. The value given must be one listed by 'gpsbabel -l'. ex-
ample:
Kommentare zu diesen Handbüchern