You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

internal_styles.cc 49KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
  1. /* This file is machine-generated from the contents of style/ */
  2. /* by mkstyle.sh. Editing it by hand is an exeedingly bad idea. */
  3. #include "defs.h"
  4. #if CSVFMTS_ENABLED
  5. static char arc[] =
  6. "# gpsbabel XCSV style file\n"
  7. "#\n"
  8. "# Format: GPSBabel arc filter format\n"
  9. "# Author: Ron Parker\n"
  10. "# Date: 17 July 2003\n"
  11. "#\n"
  12. "DESCRIPTION GPSBabel arc filter file\n"
  13. "EXTENSION txt\n"
  14. "#\n"
  15. "# FILE LAYOUT DEFINITIIONS:\n"
  16. "#\n"
  17. "FIELD_DELIMITER TAB\n"
  18. "RECORD_DELIMITER NEWLINE\n"
  19. "#\n"
  20. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  21. "#\n"
  22. "IFIELD LAT_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  23. "IFIELD LON_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  24. "OFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  25. "OFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  26. ;
  27. static char cambridge[] =
  28. "DESCRIPTION Cambridge/Winpilot glider software\n"
  29. "SHORTLEN 8\n"
  30. "EXTENSION dat\n"
  31. "#\n"
  32. "#\n"
  33. "# FILE LAYOUT DEFINITIIONS:\n"
  34. "#\n"
  35. "FIELD_DELIMITER COMMA\n"
  36. "RECORD_DELIMITER NEWLINE\n"
  37. "BADCHARS COMMA\n"
  38. "IFIELD INDEX,\"1\",\"%d\"\n"
  39. "IFIELD LAT_HUMAN_READABLE,\"\",\"%d:%06.3f%c\"\n"
  40. "IFIELD LON_HUMAN_READABLE,\"\",\"%03d:%06.3f%c\"\n"
  41. "IFIELD ALT_METERS,\"\",\"%3.0fM\"\n"
  42. "IFIELD CONSTANT,\"\",\"T\"\n"
  43. "IFIELD SHORTNAME,\"\",\"%s\"\n"
  44. "IFIELD DESCRIPTION,\"\",\"%s\"\n"
  45. ;
  46. static char csv[] =
  47. "# gpsbabel XCSV style file\n"
  48. "#\n"
  49. "# Format: DeLorme SA 9.0 CSV\n"
  50. "# Author: Alex Mottram\n"
  51. "# Date: 12/09/2002\n"
  52. "#\n"
  53. "#\n"
  54. "DESCRIPTION Comma separated values\n"
  55. "SHORTLEN 8\n"
  56. "#\n"
  57. "#\n"
  58. "# FILE LAYOUT DEFINITIIONS:\n"
  59. "#\n"
  60. "FIELD_DELIMITER COMMASPACE\n"
  61. "RECORD_DELIMITER NEWLINE\n"
  62. "BADCHARS COMMA\n"
  63. "#\n"
  64. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  65. "#\n"
  66. "IFIELD LAT_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  67. "IFIELD LON_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  68. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  69. "OFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  70. "OFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  71. "OFIELD DESCRIPTION, \"\", \"%s\"\n"
  72. ;
  73. static char cup[] =
  74. "#\n"
  75. "# (c) 2006, Robert Lipe, based on sample files by Krzysztof Wojtas\n"
  76. "# Reference info: http://www.seeyou.ws/thankyou.php?fname=cup_format.pdf\n"
  77. "# Reference info: http://download.naviter.com/docs/cup_format.pdf\n"
  78. "# Reference info: http://www.keepitsoaring.com/LKSC/Downloads/cup_format.pdf\n"
  79. "#\n"
  80. "DESCRIPTION See You flight analysis data\n"
  81. "SHORTLEN 8\n"
  82. "EXTENSION cup\n"
  83. "#\n"
  84. "#\n"
  85. "# FILE LAYOUT DEFINITIIONS:\n"
  86. "#\n"
  87. "FIELD_DELIMITER COMMA\n"
  88. "RECORD_DELIMITER NEWLINE\n"
  89. "BADCHARS ,\"\n"
  90. "PROLOGUE name,code,country,lat,lon,elev,style,rwdir,rwlen,freq,desc\n"
  91. "EPILOGUE -----Related Tasks-----\n"
  92. "IFIELD IGNORE,\"\", \"\"%s\"\"\n"
  93. "IFIELD SHORTNAME,\"\", \"%s\"\n"
  94. "IFIELD CONSTANT,\"\", \"\"\n"
  95. "IFIELD LAT_DDMMDIR, \"%f\", \"%08.3f\", \"absolute\"\n"
  96. "IFIELD LON_DDMMDIR, \"%f\", \"%09.3f\", \"absolute\"\n"
  97. "IFIELD ALT_METERS,\"\", \"%dm\"\n"
  98. "IFIELD CONSTANT,\"\", \"1\"\n"
  99. "IFIELD CONSTANT,\"\", \"\"\n"
  100. "IFIELD CONSTANT,\"\", \"\"\n"
  101. "IFIELD CONSTANT,\"\", \"\"\n"
  102. "IFIELD DESCRIPTION,\"\", \"\"%s\"\"\n"
  103. "OFIELD SHORTNAME,\"\", \"\"%s\"\"\n"
  104. "OFIELD SHORTNAME,\"\", \"%s\"\n"
  105. "OFIELD CONSTANT,\"\", \"\"\n"
  106. "OFIELD LAT_DDMMDIR, \"\", \"%08.3f%c\"\n"
  107. "OFIELD LON_DDMMDIR, \"\", \"%09.3f%c\"\n"
  108. "OFIELD ALT_METERS,\"\", \"%3.1fm\"\n"
  109. "OFIELD CONSTANT,\"\", \"1\"\n"
  110. "OFIELD CONSTANT,\"\", \"\"\n"
  111. "OFIELD CONSTANT,\"\", \"\"\n"
  112. "OFIELD CONSTANT,\"\", \"\"\n"
  113. "OFIELD DESCRIPTION,\"\", \"\"%s\"\"\n"
  114. ;
  115. static char custom[] =
  116. "# gpsbabel XCSV style file\n"
  117. "#\n"
  118. "# Format: Custom \"Everything\" Style\n"
  119. "# Author: Alex Mottram\n"
  120. "# Date: 11/24/2002\n"
  121. "#\n"
  122. "#\n"
  123. "DESCRIPTION Custom \"Everything\" Style\n"
  124. "# FILE LAYOUT DEFINITIIONS:\n"
  125. "#\n"
  126. "FIELD_DELIMITER COMMA\n"
  127. "RECORD_DELIMITER NEWLINE\n"
  128. "BADCHARS COMMA\n"
  129. "FORMAT_TYPE INTERNAL\n"
  130. "#\n"
  131. "# HEADER STUFF:\n"
  132. "#\n"
  133. "PROLOGUE Prologue Line 1 __FILE__\n"
  134. "PROLOGUE Prologue Line 2\n"
  135. "#\n"
  136. "# INDIVIDUAL DATA FIELDS:\n"
  137. "#\n"
  138. "IFIELD CONSTANT, \"CONSTANT\", \"%s\"\n"
  139. "IFIELD INDEX, \"\", \"%d\"\n"
  140. "IFIELD LAT_DECIMAL, \"\", \"%f\"\n"
  141. "IFIELD LAT_DIR, \"\", \"%c\"\n"
  142. "IFIELD LON_DECIMAL, \"\", \"%f\"\n"
  143. "IFIELD LON_DIR, \"\", \"%c\"\n"
  144. "IFIELD ICON_DESCR, \"\", \"%s\"\n"
  145. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  146. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  147. "IFIELD NOTES, \"\", \"%s\"\n"
  148. "IFIELD URL, \"\", \"%s\" \n"
  149. "IFIELD URL_LINK_TEXT, \"\", \"%s\"\n"
  150. "IFIELD ALT_METERS, \"\", \"%fM\"\n"
  151. "IFIELD ALT_FEET, \"\", \"%fF\"\n"
  152. "IFIELD LAT_DECIMALDIR, \"\", \"%f/%c\"\n"
  153. "IFIELD LON_DECIMALDIR, \"\", \"%f/%c\"\n"
  154. "IFIELD LAT_DIRDECIMAL, \"\", \"%c/%f\"\n"
  155. "IFIELD LON_DIRDECIMAL, \"\", \"%c/%f\"\n"
  156. "IFIELD LAT_INT32DEG, \"\", \"%ld\"\n"
  157. "IFIELD LON_INT32DEG, \"\", \"%ld\"\n"
  158. "IFIELD TIMET_TIME, \"\", \"%ld\"\n"
  159. "IFIELD EXCEL_TIME, \"\", \"%f\"\n"
  160. "# EPILOGUE:\n"
  161. "EPILOGUE Epilogue Line 1\n"
  162. "EPILOGUE Epilogue Line 2\n"
  163. ;
  164. static char dna[] =
  165. "# gpsbabel XCSV style file\n"
  166. "#\n"
  167. "# Format: DNA Marker Format\n"
  168. "# Author: Alex Mottram\n"
  169. "# Date: 12/09/2002\n"
  170. "#\n"
  171. "#\n"
  172. "# As defined in dna.c\n"
  173. "#\n"
  174. "#\n"
  175. "DESCRIPTION Navitrak DNA marker format\n"
  176. "EXTENSION dna\n"
  177. "# FILE LAYOUT DEFINITIIONS:\n"
  178. "#\n"
  179. "FIELD_DELIMITER COMMA\n"
  180. "RECORD_DELIMITER NEWLINE\n"
  181. "BADCHARS COMMA\n"
  182. "#\n"
  183. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  184. "#\n"
  185. "IFIELD INDEX, \"\", \"%d\"\n"
  186. "IFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  187. "IFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  188. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  189. ;
  190. static char flysight[] =
  191. "# Format: FlySight\n"
  192. "# Author: LukeH\n"
  193. "# Date: 10/10/10\n"
  194. "DESCRIPTION FlySight GPS File\n"
  195. "EXTENSION csv\n"
  196. "# FILE LAYOUT DEFINITIIONS:\n"
  197. "FIELD_DELIMITER COMMA\n"
  198. "RECORD_DELIMITER NEWLINE\n"
  199. "BADCHARS ,\"\n"
  200. "PROLOGUE time lat lon hMSL velN velE velD hAcc vAcc sAcc gpsFix numSV\n"
  201. "PROLOGUE\n"
  202. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  203. "IFIELD ISO_TIME, \"\", \"%s\" # Date & time\n"
  204. "IFIELD LAT_DECIMAL, \"\", \"%f\" # Latitude\n"
  205. "IFIELD LON_DECIMAL, \"\", \"%f\" # Longitude\n"
  206. "IFIELD ALT_METERS, \"\", \"%.0f\" # Altitude above MSL (m)\n"
  207. "IFIELD IGNORE, \"\", \"%s\" # Velocity north (m/s)\n"
  208. "IFIELD IGNORE, \"\", \"%s\" # Velocity east (m/s)\n"
  209. "IFIELD IGNORE, \"\", \"%s\" # Velocity down (m/s)\n"
  210. "IFIELD IGNORE, \"\", \"%s\" # Horizontal accuracy (m)\n"
  211. "IFIELD IGNORE, \"\", \"%s\" # Vertical accuracy (m)\n"
  212. "IFIELD IGNORE, \"\", \"%s\" # Speed accuracy (m/s)\n"
  213. "IFIELD GPS_FIX, \"\", \"%s\" # GPS fix type\n"
  214. "IFIELD GPS_SAT, \"\", \"%d\" # Number of satellites used in fix\n"
  215. ;
  216. static char fugawi[] =
  217. "# fugawi XCSV style file\n"
  218. "#\n"
  219. "# Format: Fugawi\n"
  220. "# Author: Robert Lipe, Patrick Ohly\n"
  221. "# Date: 07/24/2005\n"
  222. "#\n"
  223. "#\n"
  224. "DESCRIPTION Fugawi\n"
  225. "EXTENSION txt\n"
  226. "SHORTLEN 10\n"
  227. "#\n"
  228. "# FILE LAYOUT DEFINITIIONS:\n"
  229. "#\n"
  230. "FIELD_DELIMITER COMMA\n"
  231. "RECORD_DELIMITER NEWLINE\n"
  232. "BADCHARS COMMA\n"
  233. "PROLOGUE \\# Latitude, Longitude and UTM coordinates are in WGS84 datum\n"
  234. "PROLOGUE \\#\n"
  235. "PROLOGUE \\# Every set of data contains the following:\n"
  236. "PROLOGUE \\#\n"
  237. "PROLOGUE \\# Waypoint name\n"
  238. "PROLOGUE \\# Waypoint comment\n"
  239. "PROLOGUE \\# Waypoint description\n"
  240. "PROLOGUE \\# Latitude in Degree and decimals (soutern hemisphere has neg. degrees)\n"
  241. "PROLOGUE \\# Longitude in degree and decimals (neg. numbers: west of Greenwich)\n"
  242. "PROLOGUE \\# Height in meters [optional when importing, always present when exporting: Date (GMT) as ISO YYYYMMDD, Time of the day relative to the date as HHMMSS\n"
  243. "#\n"
  244. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  245. "#\n"
  246. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  247. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  248. "IFIELD NOTES, \"\", \"%s\"\n"
  249. "IFIELD LAT_DECIMAL, \"\", \"%-.7f\"\n"
  250. "IFIELD LON_DECIMAL, \"\", \"%-.7f\"\n"
  251. "IFIELD ALT_METERS, \"\", \"%-7.1f\"\n"
  252. "IFIELD GMT_TIME, \"\", \"%Y%m%d\"\n"
  253. "IFIELD HMSG_TIME, \"\", \"%02d%02d%02d\"\n"
  254. ;
  255. static char garmin301[] =
  256. "# gpsbabel XCSV style file\n"
  257. "#\n"
  258. "# Format: Garmin 301 Position + Heartrate data\n"
  259. "# Author: Jeff Kalikstein\n"
  260. "# Date: 08/29/2005\n"
  261. "#\n"
  262. "DESCRIPTION Garmin 301 Custom position and heartrate\n"
  263. "# FILE LAYOUT DEFINITIIONS:\n"
  264. "#\n"
  265. "FIELD_DELIMITER COMMA\n"
  266. "RECORD_DELIMITER NEWLINE\n"
  267. "BADCHARS COMMA\n"
  268. "#FORMAT_TYPE INTERNAL\n"
  269. "#\n"
  270. "# HEADER STUFF:\n"
  271. "#\n"
  272. "PROLOGUE Garmin 301 data __FILE__\n"
  273. "PROLOGUE Timestamp,Latitude, Longitude, Altitude(ft), heart rate\n"
  274. "#\n"
  275. "# INDIVIDUAL DATA FIELDS:\n"
  276. "#\n"
  277. "IFIELD TIMET_TIME,\"\",\"%ld\"\n"
  278. "IFIELD LAT_DECIMAL, \"\", \"%f\"\n"
  279. "IFIELD LON_DECIMAL, \"\", \"%f\"\n"
  280. "IFIELD ALT_FEET, \"\", \"%fF\"\n"
  281. "IFIELD HEART_RATE,\"\",\" %d\" # beats per minute\n"
  282. "# EPILOGUE:\n"
  283. "#EPILOGUE Epilogue Line 1\n"
  284. "#EPILOGUE Epilogue Line 2\n"
  285. ;
  286. static char garmin_g1000[] =
  287. "# gpsbabel XCSV style file\n"
  288. "#\n"
  289. "# Format: Garmin G1000 Datalog Format (Cessna 182T and others)\n"
  290. "# Author: Matt Johnson\n"
  291. "# Date: 04/09/2014\n"
  292. "#\n"
  293. "DESCRIPTION Garmin G1000 datalog input filter file\n"
  294. "EXTENSION csv\n"
  295. "# FILE LAYOUT DEFINITIIONS:\n"
  296. "#\n"
  297. "FIELD_DELIMITER COMMA\n"
  298. "RECORD_DELIMITER NEWLINE\n"
  299. "BADCHARS COMMA\n"
  300. "# INTERNAL CONSTANTS\n"
  301. "#\n"
  302. "DATATYPE TRACK\n"
  303. "#\n"
  304. "# HEADER\n"
  305. "#\n"
  306. "PROLOGUE airframe_info, log_version=\"1.00\", airframe_name=\"Cessna 182T\", unit_software_part_number=\"\", unit_software_version=\"12.03\", system_software_part_number=\"\", system_id=\"\", mode=NORMAL,\n"
  307. "PROLOGUE yyyy-mm-dd, hh:mm:ss, hh:mm, ident, degrees, degrees, ft Baro, inch, ft msl, deg C, kt, kt, fpm, deg, deg, G, G, deg, deg, volts, volts, amps, amps, gals, gals, gph, deg F, psi, Hg, rpm, deg F, deg F, deg F, deg F, deg F, deg F, deg F, deg F, deg F, deg F, deg F, deg F, ft wgs, kt, enum, deg, MHz, MHz, MHz, MHz, fsd, fsd, kt, deg, nm, deg, deg, bool, enum, enum, deg, deg, fpm, enum, mt, mt, mt, mt, mt\n"
  308. "PROLOGUE Lcl Date, Lcl Time, UTCOfst, AtvWpt, Latitude, Longitude, AltB, BaroA, AltMSL, OAT, IAS, GndSpd, VSpd, Pitch, Roll, LatAc, NormAc, HDG, TRK, volt1, volt2, amp1, amp2, FQtyL, FQtyR, E1 FFlow, E1 OilT, E1 OilP, E1 MAP, E1 RPM, E1 CHT1, E1 CHT2, E1 CHT3, E1 CHT4, E1 CHT5, E1 CHT6, E1 EGT1, E1 EGT2, E1 EGT3, E1 EGT4, E1 EGT5, E1 EGT6, AltGPS, TAS, HSIS, CRS, NAV1, NAV2, COM1, COM2, HCDI, VCDI, WndSpd, WndDr, WptDst, WptBrg, MagVar, AfcsOn, RollM, PitchM, RollC, PichC, VSpdG, GPSfix, HAL, VAL, HPLwas, HPLfd, VPLwas\n"
  309. "#\n"
  310. "# INDIVIDUAL DATA FIELDS:\n"
  311. "#\n"
  312. "IFIELD GMT_TIME,\"\",\"%Y-%m-%d\" #Lcl Date,\n"
  313. "IFIELD HMSG_TIME,\"\",\"%d:%d:%d %s\" #Lcl Time,\n"
  314. "IFIELD IGNORE,\"\",\"%s\" #UTCOfst,\n"
  315. "IFIELD IGNORE,\"\",\"%s\" #AtvWpt,\n"
  316. "IFIELD LAT_DECIMAL, \"\", \"%f\" #Latitude,\n"
  317. "IFIELD LON_DECIMAL, \"\", \"%f\" #Longitude,\n"
  318. "IFIELD ALT_FEET,\"\",\"%.0f\" #AltB,\n"
  319. "IFIELD IGNORE,\"\",\"%s\" #BaroA,\n"
  320. "IFIELD IGNORE,\"\",\"%s\" #AltMSL,\n"
  321. "IFIELD IGNORE,\"\",\"%s\" #OAT,\n"
  322. "IFIELD IGNORE,\"\",\"%s\" #IAS,\n"
  323. "IFIELD IGNORE,\"\",\"%s\" #GndSpd,\n"
  324. "IFIELD IGNORE,\"\",\"%s\" #VSpd,\n"
  325. "IFIELD IGNORE,\"\",\"%s\" #Pitch,\n"
  326. "IFIELD IGNORE,\"\",\"%s\" #Roll,\n"
  327. "IFIELD IGNORE,\"\",\"%s\" #LatAc,\n"
  328. "IFIELD IGNORE,\"\",\"%s\" #NormAc,\n"
  329. "IFIELD IGNORE,\"\",\"%s\" #HDG,\n"
  330. "IFIELD IGNORE,\"\",\"%s\" #TRK,\n"
  331. "IFIELD IGNORE,\"\",\"%s\" #volt1,\n"
  332. "IFIELD IGNORE,\"\",\"%s\" #volt2,\n"
  333. "IFIELD IGNORE,\"\",\"%s\" #amp1,\n"
  334. "IFIELD IGNORE,\"\",\"%s\" #amp2,\n"
  335. "IFIELD IGNORE,\"\",\"%s\" #FQtyL,\n"
  336. "IFIELD IGNORE,\"\",\"%s\" #FQtyR,\n"
  337. "IFIELD IGNORE,\"\",\"%s\" #E1 FFlow,\n"
  338. "IFIELD IGNORE,\"\",\"%s\" #E1 OilT,\n"
  339. "IFIELD IGNORE,\"\",\"%s\" #E1 OilP,\n"
  340. "IFIELD IGNORE,\"\",\"%s\" #E1 MAP,\n"
  341. "IFIELD IGNORE,\"\",\"%s\" #E1 RPM,\n"
  342. "IFIELD IGNORE,\"\",\"%s\" #E1 CHT1,\n"
  343. "IFIELD IGNORE,\"\",\"%s\" #E1 CHT2,\n"
  344. "IFIELD IGNORE,\"\",\"%s\" #E1 CHT3,\n"
  345. "IFIELD IGNORE,\"\",\"%s\" #E1 CHT4,\n"
  346. "IFIELD IGNORE,\"\",\"%s\" #E1 CHT5,\n"
  347. "IFIELD IGNORE,\"\",\"%s\" #E1 CHT6,\n"
  348. "IFIELD IGNORE,\"\",\"%s\" #E1 EGT1,\n"
  349. "IFIELD IGNORE,\"\",\"%s\" #E1 EGT2,\n"
  350. "IFIELD IGNORE,\"\",\"%s\" #E1 EGT3,\n"
  351. "IFIELD IGNORE,\"\",\"%s\" #E1 EGT4,\n"
  352. "IFIELD IGNORE,\"\",\"%s\" #E1 EGT5,\n"
  353. "IFIELD IGNORE,\"\",\"%s\" #E1 EGT6,\n"
  354. "IFIELD IGNORE,\"\",\"%s\" #E1 TIT1,\n"
  355. "IFIELD IGNORE,\"\",\"%s\" #AltGPS,\n"
  356. "IFIELD IGNORE,\"\",\"%s\" #TAS,\n"
  357. "IFIELD IGNORE,\"\",\"%s\" #HSIS,\n"
  358. "IFIELD IGNORE,\"\",\"%s\" #CRS,\n"
  359. "IFIELD IGNORE,\"\",\"%s\" #NAV1,\n"
  360. "IFIELD IGNORE,\"\",\"%s\" #NAV2,\n"
  361. "IFIELD IGNORE,\"\",\"%s\" #COM1,\n"
  362. "IFIELD IGNORE,\"\",\"%s\" #COM2,\n"
  363. "IFIELD IGNORE,\"\",\"%s\" #HCDI,\n"
  364. "IFIELD IGNORE,\"\",\"%s\" #VCDI,\n"
  365. "IFIELD IGNORE,\"\",\"%s\" #WndSpd,\n"
  366. "IFIELD IGNORE,\"\",\"%s\" #WndDr,\n"
  367. "IFIELD IGNORE,\"\",\"%s\" #WptDst,\n"
  368. "IFIELD IGNORE,\"\",\"%s\" #WptBrg,\n"
  369. "IFIELD IGNORE,\"\",\"%s\" #MagVar,\n"
  370. "IFIELD IGNORE,\"\",\"%s\" #AfcsOn,\n"
  371. "IFIELD IGNORE,\"\",\"%s\" #RollM,\n"
  372. "IFIELD IGNORE,\"\",\"%s\" #PitchM,\n"
  373. "IFIELD IGNORE,\"\",\"%s\" #RollC,\n"
  374. "IFIELD IGNORE,\"\",\"%s\" #PichC,\n"
  375. "IFIELD IGNORE,\"\",\"%s\" #VSpdG,\n"
  376. "IFIELD IGNORE,\"\",\"%s\" #GPSfix,\n"
  377. "IFIELD IGNORE,\"\",\"%s\" #HAL,\n"
  378. "IFIELD IGNORE,\"\",\"%s\" #VAL,\n"
  379. "IFIELD IGNORE,\"\",\"%s\" #HPLwas,\n"
  380. "IFIELD IGNORE,\"\",\"%s\" #HPLfd,\n"
  381. "IFIELD IGNORE,\"\",\"%s\" #VPLwas\n"
  382. ;
  383. static char garmin_poi[] =
  384. "# gpsbabel XCSV style file\n"
  385. "#\n"
  386. "# Format: Garmin POI\n"
  387. "# Author: Robert Lipe\n"
  388. "# Date: 10/07/2005\n"
  389. "# Reference: http://forums.groundspeak.com/GC/index.php?showtopic=110641&st=0&#entry1752204\n"
  390. "#\n"
  391. "DESCRIPTION Garmin POI database\n"
  392. "#\n"
  393. "#\n"
  394. "# FILE LAYOUT DEFINITIIONS:\n"
  395. "#\n"
  396. "FIELD_DELIMITER COMMA\n"
  397. "RECORD_DELIMITER NEWLINE\n"
  398. "BADCHARS COMMA\n"
  399. "SHORTLEN 24\n"
  400. "# PROLOGUE Longitude,Latitude,Name, comment\n"
  401. "#\n"
  402. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  403. "#\n"
  404. "IFIELD LON_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  405. "IFIELD LAT_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  406. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  407. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  408. "OFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  409. "OFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  410. "OFIELD SHORTNAME, \"\", \"%-.24s\"\n"
  411. "OFIELD GEOCACHE_TYPE, \"\", \" %-.4s\", \"no_delim_before,optional\"\n"
  412. "OFIELD GEOCACHE_CONTAINER, \"\", \"/%-.4s \", \"no_delim_before,optional\"\n"
  413. "OFIELD GEOCACHE_DIFF, \"\", \"(%3.1f\", \"no_delim_before,optional\"\n"
  414. "OFIELD GEOCACHE_TERR, \"\", \"/%3.1f)\", \"no_delim_before,optional\"\n"
  415. "OFIELD DESCRIPTION, \"\", \"%-.50s\"\n"
  416. ;
  417. static char geonet[] =
  418. "# gpsbabel XCSV style file\n"
  419. "#\n"
  420. "# Format: GEOnet Names Server (GNS) (http://earth-info.nga.mil/gns/html/cntry_files.html)\n"
  421. "# Author: Olaf Klein\n"
  422. "# Date: 08/20/2002\n"
  423. "#\n"
  424. "DESCRIPTION GEOnet Names Server (GNS)\n"
  425. "EXTENSION txt\n"
  426. "#\n"
  427. "# FILE LAYOUT DEFINITIIONS:\n"
  428. "#\n"
  429. "FIELD_DELIMITER TAB\n"
  430. "RECORD_DELIMITER CRNEWLINE\n"
  431. "BADCHARS TAB\n"
  432. "ENCODING UTF-8\n"
  433. "PROLOGUE RC UFI UNI LAT LONG DMS_LAT DMS_LONG UTM JOG FC DSG PC CC1 ADM1 ADM2 DIM CC2 NT LC SHORT_FORM GENERIC SORT_NAME FULL_NAME FULL_NAME_ND MODIFY_DATE\n"
  434. "#\n"
  435. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  436. "#\n"
  437. "IFIELD IGNORE, \"\", \"%s\" # RC ( http://earth-info.nga.mil/gns/html/gis_contryfiles.html )\n"
  438. "IFIELD IGNORE, \"\", \"%s\" # UFI\n"
  439. "IFIELD IGNORE, \"\", \"%s\" # UNI\n"
  440. "IFIELD LAT_DECIMAL, \"\", \"%03.7f\" # LAT\n"
  441. "IFIELD LON_DECIMAL, \"\", \"%03.7f\" # LONG\n"
  442. "IFIELD IGNORE, \"\", \"%s\" # DMS_LAT\n"
  443. "IFIELD IGNORE, \"\", \"%s\" # DMS_LONG\n"
  444. "IFIELD IGNORE, \"\", \"%s\" # UTM\n"
  445. "IFIELD IGNORE, \"\", \"%s\" # JOG\n"
  446. "IFIELD IGNORE, \"\", \"%s\" # FC\n"
  447. "IFIELD IGNORE, \"\", \"%s\" # DSG\n"
  448. "IFIELD IGNORE, \"\", \"%s\" # PC\n"
  449. "IFIELD IGNORE, \"\", \"%s\" # CC1\n"
  450. "IFIELD IGNORE, \"\", \"%s\" # ADM1\n"
  451. "IFIELD IGNORE, \"\", \"%s\" # ADM2\n"
  452. "IFIELD IGNORE, \"\", \"%s\" # DIM\n"
  453. "IFIELD IGNORE, \"\", \"%s\" # CC2\n"
  454. "IFIELD IGNORE, \"\", \"%s\" # NT\n"
  455. "IFIELD IGNORE, \"\", \"%s\" # LC\n"
  456. "IFIELD IGNORE, \"\", \"%s\" # SHORT_FORM\n"
  457. "IFIELD IGNORE, \"\", \"%s\" # GENERIC\n"
  458. "IFIELD SHORTNAME, \"\", \"%s\" # SHORT_NAME\n"
  459. "IFIELD DESCRIPTION, \"\", \"%s\" # FULL_NAME\n"
  460. "IFIELD IGNORE, \"\", \"%s\" # FULL_NAME_ND\n"
  461. "IFIELD IGNORE, \"\", \"%s\" # MOD_DATE\n"
  462. ;
  463. static char gpsdrive[] =
  464. "# gpsbabel XCSV style file\n"
  465. "#\n"
  466. "# Format: GPSDrive\n"
  467. "# Author: Alex Mottram\n"
  468. "# Date: 12/11/2002\n"
  469. "#\n"
  470. "#\n"
  471. "#\n"
  472. "DESCRIPTION GpsDrive Format\n"
  473. "# FILE LAYOUT DEFINITIIONS:\n"
  474. "#\n"
  475. "FIELD_DELIMITER WHITESPACE\n"
  476. "RECORD_DELIMITER NEWLINE\n"
  477. "BADCHARS ,'\"\n"
  478. "SHORTLEN 20\n"
  479. "SHORTWHITE 0\n"
  480. "#\n"
  481. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  482. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  483. "IFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  484. "IFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  485. "IFIELD ICON_DESCR, \"\", \"%s\"\n"
  486. "OFIELD ANYNAME, \"\", \"%s\"\n"
  487. "OFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  488. "OFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  489. "OFIELD ICON_DESCR, \"\", \"%s\"\n"
  490. ;
  491. static char gpsdrivetrack[] =
  492. "# gpsbabel XCSV style file\n"
  493. "#\n"
  494. "# Format: GPSDriveTrack\n"
  495. "# Author: Tobias Minich\n"
  496. "# Date: 12/07/2005\n"
  497. "#\n"
  498. "#\n"
  499. "#\n"
  500. "DESCRIPTION GpsDrive Format for Tracks\n"
  501. "# FILE LAYOUT DEFINITIIONS:\n"
  502. "#\n"
  503. "FIELD_DELIMITER WHITESPACE\n"
  504. "RECORD_DELIMITER NEWLINE\n"
  505. "BADCHARS ,'\"\n"
  506. "SHORTLEN 20\n"
  507. "SHORTWHITE 0\n"
  508. "#\n"
  509. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  510. "IFIELD LAT_DECIMAL, \"\", \"%10.6f\"\n"
  511. "IFIELD LON_DECIMAL, \"\", \"%10.6f\"\n"
  512. "IFIELD ALT_METERS, \"\", \"%10.0f\"\n"
  513. "# Reports are that this format stores in local time, not GMT as \n"
  514. "# originally thought.\n"
  515. "# IFIELD GMT_TIME, \"\", \"%a %b %d %H:%M:%S %Y\"\n"
  516. "IFIELD LOCAL_TIME, \"\", \"%a %b %d %H:%M:%S %Y\"\n"
  517. ;
  518. static char gpsman[] =
  519. "# gpsbabel XCSV style file\n"
  520. "#\n"
  521. "# Format: GPSMAN Format\n"
  522. "# Author: Alex Mottram\n"
  523. "# Date: 12/09/2002\n"
  524. "#\n"
  525. "#\n"
  526. "# As defined in gpsman.c\n"
  527. "#\n"
  528. "#\n"
  529. "DESCRIPTION GPSman\n"
  530. "SHORTLEN 8\n"
  531. "SHORTWHITE 0\n"
  532. "# FILE LAYOUT DEFINITIIONS:\n"
  533. "#\n"
  534. "FIELD_DELIMITER TAB\n"
  535. "RECORD_DELIMITER NEWLINE\n"
  536. "BADCHARS TAB\n"
  537. "PROLOGUE !Format: DDD 1 WGS 84\n"
  538. "PROLOGUE !W:\n"
  539. "#\n"
  540. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  541. "#\n"
  542. "IFIELD SHORTNAME, \"\", \"%-8.8s\"\n"
  543. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  544. "IFIELD LAT_DIRDECIMAL, \"\", \"%c%f\"\n"
  545. "IFIELD LON_DIRDECIMAL, \"\", \"%c%f\"\n"
  546. "IFIELD IGNORE, \"\", \"%s\"\n"
  547. "# gpsman.c likes mkshort len = 8, whitespace = 0.\n"
  548. ;
  549. static char iblue747[] =
  550. "# GPSBabel XCSV Style File http://www.gpsbabel.org/htmldoc-development/Styles.html\n"
  551. "# Author: Christian Barmala http://www.barmala.de/\n"
  552. "# License GNU Public License http://opensource.org/licenses/gpl-license.php\n"
  553. "DESCRIPTION Data Logger iBlue747 csv\n"
  554. "EXTENSION csv\n"
  555. "# full length csv with all options\n"
  556. "# FILE LAYOUT DEFINITIIONS:\n"
  557. "FIELD_DELIMITER COMMA\n"
  558. "RECORD_DELIMITER NEWLINE\n"
  559. "# BADCHARS COMMA\n"
  560. "# SHORTLEN 16\n"
  561. "# SHORTWHITE 0\n"
  562. "# ENCODING UTF-8\n"
  563. "DATATYPE TRACK\n"
  564. "PROLOGUE INDEX,RCR,DATE,TIME,VALID,LATITUDE,N/S,LONGITUDE,E/W,HEIGHT,SPEED,HEADING,DSTA,DAGE,PDOP,HDOP,VDOP,NSAT (USED/VIEW),SAT INFO (SID-ELE-AZI-SNR),DISTANCE,\n"
  565. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  566. "IFIELD INDEX,\"1\",\"%d\" # INDEX\n"
  567. "IFIELD CONSTANT,\"T\",\"%s\" # RCR\n"
  568. "IFIELD GMT_TIME,\"\",\"%Y/%m/%d\" # DATE\n"
  569. "IFIELD HMSG_TIME,\"\",\"%02d:%02d:%02d\" # TIME\n"
  570. "IFIELD GPS_FIX,\"\",\"%s\" # VALID # No fix, SPS, DGPS, PPS\n"
  571. "IFIELD LAT_DECIMAL,\"\",\"%f\" # LATITUDE\n"
  572. "IFIELD LAT_DIR,\"\",\"%c\" # N/S\n"
  573. "IFIELD LON_DECIMAL,\"\",\"%f\" # LONGITUDE\n"
  574. "IFIELD LON_DIR,\"\",\"%c\" # E/W\n"
  575. "IFIELD ALT_METERS,\"\",\"%.0f\" # HEIGHT\n"
  576. "IFIELD PATH_SPEED_KPH,\"\",\"%.1f\" # SPEED\n"
  577. "IFIELD IGNORE,\"\",\"%s\" # HEADING\n"
  578. "IFIELD IGNORE,\"\",\"%s\" # DSTA\n"
  579. "IFIELD IGNORE,\"\",\"%s\" # DAGE\n"
  580. "IFIELD GPS_PDOP,\"\",\"%f\" # PDOP\n"
  581. "IFIELD GPS_HDOP,\"\",\"%f\" # HDOP\n"
  582. "IFIELD GPS_VDOP,\"\",\"%f\" # VDOP\n"
  583. "IFIELD GPS_SAT,\"\",\"%d(\" # NSAT USED/VIEW\n"
  584. "IFIELD IGNORE,\"\",\"%s\" # SAT INFO\n"
  585. "IFIELD PATH_DISTANCE_KM,\"\",\"%f\" # DISTANCE\n"
  586. ;
  587. static char iblue757[] =
  588. "# GPSBabel XCSV Style File http://www.gpsbabel.org/htmldoc-development/Styles.html\n"
  589. "# Author: iBlue747csv by Christian Barmala http://www.barmala.de/\n"
  590. "# edited by Anthony Vella to suit the iBlue757 csv format (date format changed)\n"
  591. "# License GNU Public License http://opensource.org/licenses/gpl-license.php\n"
  592. "DESCRIPTION Data Logger iBlue757 csv\n"
  593. "EXTENSION csv\n"
  594. "# full length csv with all options\n"
  595. "# FILE LAYOUT DEFINITIIONS:\n"
  596. "FIELD_DELIMITER COMMA\n"
  597. "RECORD_DELIMITER NEWLINE\n"
  598. "# BADCHARS COMMA\n"
  599. "# SHORTLEN 16\n"
  600. "# SHORTWHITE 0\n"
  601. "# ENCODING UTF-8\n"
  602. "DATATYPE TRACK\n"
  603. "PROLOGUE INDEX,RCR,DATE,TIME,VALID,LATITUDE,N/S,LONGITUDE,E/W,HEIGHT,SPEED,HEADING,DSTA,DAGE,PDOP,HDOP,VDOP,NSAT (USED/VIEW),SAT INFO (SID-ELE-AZI-SNR),DISTANCE,\n"
  604. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  605. "IFIELD INDEX,\"1\",\"%d\" # INDEX\n"
  606. "IFIELD CONSTANT,\"T\",\"%s\" # RCR\n"
  607. "IFIELD GMT_TIME,\"\",\"%d/%m/%Y\" # DATE\n"
  608. "IFIELD HMSG_TIME,\"\",\"%02d:%02d:%02d\" # TIME\n"
  609. "IFIELD GPS_FIX,\"\",\"%s\" # VALID # No fix, SPS, DGPS, PPS\n"
  610. "IFIELD LAT_DECIMAL,\"\",\"%f\" # LATITUDE\n"
  611. "IFIELD LAT_DIR,\"\",\"%c\" # N/S\n"
  612. "IFIELD LON_DECIMAL,\"\",\"%f\" # LONGITUDE\n"
  613. "IFIELD LON_DIR,\"\",\"%c\" # E/W\n"
  614. "IFIELD ALT_METERS,\"\",\"%.0f\" # HEIGHT\n"
  615. "IFIELD PATH_SPEED_KPH,\"\",\"%.1f\" # SPEED\n"
  616. "IFIELD IGNORE,\"\",\"%s\" # HEADING\n"
  617. "IFIELD IGNORE,\"\",\"%s\" # DSTA\n"
  618. "IFIELD IGNORE,\"\",\"%s\" # DAGE\n"
  619. "IFIELD GPS_PDOP,\"\",\"%f\" # PDOP\n"
  620. "IFIELD GPS_HDOP,\"\",\"%f\" # HDOP\n"
  621. "IFIELD GPS_VDOP,\"\",\"%f\" # VDOP\n"
  622. "IFIELD GPS_SAT,\"\",\"%d(\" # NSAT USED/VIEW\n"
  623. "IFIELD IGNORE,\"\",\"%s\" # SAT INFO\n"
  624. "IFIELD PATH_DISTANCE_KM,\"\",\"%f\" # DISTANCE\n"
  625. ;
  626. static char igo2008_poi[] =
  627. "# gpsbabel XCSV style file\n"
  628. "#\n"
  629. "# Format: iGO2008 points of interest\n"
  630. "# Author: Olaf Klein\n"
  631. "# Date: 09/05/2008\n"
  632. "#\n"
  633. "DESCRIPTION iGO2008 points of interest (.upoi)\n"
  634. "EXTENSION upoi\n"
  635. "DATATYPE WAYPOINT\n"
  636. "#\n"
  637. "# FILE LAYOUT DEFINITIIONS:\n"
  638. "#\n"
  639. "FIELD_DELIMITER PIPE\n"
  640. "RECORD_DELIMITER CRNEWLINE\n"
  641. "BADCHARS \"|\n"
  642. "ENCODING windows-1252\n"
  643. "#\n"
  644. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  645. "#\n"
  646. "IFIELD INDEX,\"1\",\"%d\"\n"
  647. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  648. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  649. "IFIELD IGNORE, \"\", \"%s\" # nothing\n"
  650. "IFIELD LAT_DECIMAL, \"\", \"%.6f\"\n"
  651. "IFIELD LON_DECIMAL, \"\", \"%.6f\"\n"
  652. "IFIELD IGNORE, \"\", \"%s\" # Name of map\n"
  653. "IFIELD IGNORE, \"\", \"%s\" # nothing\n"
  654. "IFIELD POSTAL_CODE, \"\", \"%s\"\n"
  655. "IFIELD CITY, \"\", \"%s\"\n"
  656. "IFIELD STREET_ADDR, \"\", \"%s\" # Street without number\n"
  657. "IFIELD IGNORE, \"\", \"%s\" # Street number\n"
  658. "IFIELD NOTES, \"\", \"%s\"\n"
  659. "IFIELD PHONE_NR, \"\", \"%s\"\n"
  660. ;
  661. static char igoprimo_poi[] =
  662. "# gpsbabel XCSV style file\n"
  663. "#\n"
  664. "# Format: iGo Primo points of interest\n"
  665. "# Author: Scott Bradford\n"
  666. "# Date: 03/26/2016\n"
  667. "#\n"
  668. "DESCRIPTION iGo Primo points of interest (.upoi)\n"
  669. "EXTENSION upoi\n"
  670. "DATATYPE WAYPOINT\n"
  671. "#\n"
  672. "# FILE LAYOUT DEFINITIONS:\n"
  673. "#\n"
  674. "FIELD_DELIMITER PIPE\n"
  675. "RECORD_DELIMITER NEWLINE\n"
  676. "BADCHARS \"|\n"
  677. "ENCODING UTF-16LE\n"
  678. "#\n"
  679. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  680. "#\n"
  681. "IFIELD INDEX, \"1\", \"%d\"\n"
  682. "IFIELD CONSTANT, \"@Favourites\", \"%s\" # always @Favourites?\n"
  683. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  684. "IFIELD IGNORE, \"\", \"%s\" # always empty?\n"
  685. "IFIELD LAT_DECIMAL, \"\", \"%.6f\"\n"
  686. "IFIELD LON_DECIMAL, \"\", \"%.6f\"\n"
  687. "IFIELD CONSTANT, \"_u**\", \"%s\" # always _u**?\n"
  688. "IFIELD IGNORE, \"\", \"%s\" # always empty?\n"
  689. "IFIELD CONSTANT, \"_uva\", \"%s\" # always _uva?\n"
  690. "IFIELD IGNORE, \"\", \"%s\" # always empty?\n"
  691. "IFIELD POSTAL_CODE, \"\", \"%s\"\n"
  692. "IFIELD CITY, \"\", \"%s\"\n"
  693. "IFIELD STREET_ADDR, \"\", \"%s\" # should be street name (no number)\n"
  694. "IFIELD IGNORE, \"\", \"%s\" # should be street number\n"
  695. "IFIELD IGNORE, \"\", \"%s\" # always empty?\n"
  696. "IFIELD PHONE_NR, \"\", \"%s\"\n"
  697. "IFIELD IGNORE, \"\", \"%s\" # always empty?\n"
  698. "IFIELD IGNORE, \"\", \"%s\" # seems to be extra lat/lon values?\n"
  699. ;
  700. static char kompass_tk[] =
  701. "# gpsbabel XCSV style file\n"
  702. "#\n"
  703. "# Format: Kompass / Deutscher Alpenverein (DAV) Waypoints\n"
  704. "# Author: Olaf Klein\n"
  705. "# Date: 01/10/2007\n"
  706. "#\n"
  707. "#\n"
  708. "DESCRIPTION Kompass (DAV) Track (.tk)\n"
  709. "DATATYPE TRACK\n"
  710. "EXTENSION wp\n"
  711. "FIELD_DELIMITER COMMA\n"
  712. "RECORD_DELIMITER NEWLINE\n"
  713. "BADCHARS ,\"\n"
  714. "#\n"
  715. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  716. "#\n"
  717. "IFIELD LAT_DECIMAL, \"\", \"%.7f\"\n"
  718. "IFIELD LON_DECIMAL, \"\", \"%.7f\"\n"
  719. ;
  720. static char kompass_wp[] =
  721. "# gpsbabel XCSV style file\n"
  722. "#\n"
  723. "# Format: Kompass / Deutscher Alpenverein (DAV) Waypoints\n"
  724. "# Author: Olaf Klein\n"
  725. "# Date: 01/10/2007\n"
  726. "#\n"
  727. "#\n"
  728. "DESCRIPTION Kompass (DAV) Waypoints (.wp)\n"
  729. "DATATYPE WAYPOINT\n"
  730. "EXTENSION wp\n"
  731. "ENCODING UTF-8\n"
  732. "FIELD_DELIMITER SEMICOLON\n"
  733. "RECORD_DELIMITER CRNEWLINE\n"
  734. "BADCHARS ,\"\n"
  735. "#\n"
  736. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  737. "#\n"
  738. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  739. "IFIELD LON_DECIMAL, \"\", \"%.7f\"\n"
  740. "IFIELD LAT_DECIMAL, \"\", \"%.7f\"\n"
  741. "IFIELD ALT_METERS, \"\", \"%.0f\"\n"
  742. "IFIELD LOCAL_TIME,\"\",\"%d.%m.%Y %H:%M:%S\"\n"
  743. "IFIELD CONSTANT, \"Icons\\Wegpunkt grün.bmp\", \"%s\"\n"
  744. "IFIELD IGNORE, \"\", \"%s\"\n"
  745. "IFIELD CONSTANT, \"1\", \"%s\" # unknown\n"
  746. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  747. ;
  748. static char land_air_sea[] =
  749. "# Format: GPS Tracking Key Pro text file\n"
  750. "# Author: Tyler Ritchie\n"
  751. "# Date: 2011.02.04\n"
  752. "DESCRIPTION GPS Tracking Key Pro text\n"
  753. "EXTENSION txt\n"
  754. "# ENCODING ISO-8859-1\n"
  755. "DATUM WGS 84\n"
  756. "DATATYPE TRACK\n"
  757. "#File layout definitions\n"
  758. "FIELD_DELIMITER COMMA\n"
  759. "RECORD_DELIMITER NEWLINE\n"
  760. "# Individual data fields in order of appearance\n"
  761. "IFIELD LOCAL_TIME,\"\",\"%m-%d-%Y\"\n"
  762. "IFIELD HMSG_TIME,\"\",\"%d:%d:%d\"\n"
  763. "IFIELD LAT_HUMAN_READABLE,\"\",\"%c %d°%d'%f\\\"\"\n"
  764. "IFIELD LON_HUMAN_READABLE,\"\",\"%c %d°%d'%f\\\"\"\n"
  765. "IFIELD PATH_SPEED_MPH,\"\",\"%.1fmph\"\n"
  766. "IFIELD IGNORE,\"\",\"%s\" #This is the bearing data\n"
  767. "IFIELD ALT_FEET,\"\",\"%dft\"\n"
  768. ;
  769. static char mainnav[] =
  770. "#\n"
  771. "# Support for MainNav CSV format\n"
  772. "#\n"
  773. "# Copyright (C) 2012 Robert Lipe, gpsbabel.org\n"
  774. "#\n"
  775. "# This program is free software; you can redistribute it and/or modify\n"
  776. "# it under the terms of the GNU General Public License as published by\n"
  777. "# the Free Software Foundation; either version 2 of the License, or\n"
  778. "# (at your option) any later version.\n"
  779. "#\n"
  780. "# This program is distributed in the hope that it will be useful,\n"
  781. "# but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
  782. "# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
  783. "# GNU General Public License for more details.\n"
  784. "#\n"
  785. "# You should have received a copy of the GNU General Public License\n"
  786. "# along with this program; if not, write to the Free Software\n"
  787. "# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA\n"
  788. "#\n"
  789. "# gpsbabel XCSV style file\n"
  790. "# Format: Mainnav MG-950d data logger and possibly others\n"
  791. "# Author: tsteven4\n"
  792. "# Date: December 13, 2012\n"
  793. "#\n"
  794. "#\n"
  795. "DESCRIPTION Mainnav\n"
  796. "EXTENSION nav\n"
  797. "DATATYPE TRACK\n"
  798. "#\n"
  799. "#\n"
  800. "# FILE LAYOUT DEFINITIIONS:\n"
  801. "#\n"
  802. "FIELD_DELIMITER COMMA\n"
  803. "RECORD_DELIMITER NEWLINE\n"
  804. "BADCHARS COMMA\n"
  805. "#\n"
  806. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  807. "#\n"
  808. "IFIELD LOCAL_TIME, \"\", \"%Y/%m/%d %H:%M:%S\"\n"
  809. "IFIELD LON_DECIMAL,\"\",\"%.9f\"\n"
  810. "IFIELD LON_DIR,\"\",\"%c\"\n"
  811. "IFIELD LAT_DECIMAL,\"\",\"%.9f\"\n"
  812. "IFIELD LAT_DIR,\"\",\"%c\"\n"
  813. "IFIELD ALT_FEET, \"\", \"%f\"\n"
  814. "IFIELD IGNORE, \"\", \"%s\" # SPD?\n"
  815. "IFIELD IGNORE, \"\", \"%s\" # PATH?\n"
  816. "IFIELD IGNORE, \"\", \"%s\" # FILENAME?\n"
  817. "IFIELD IGNORE, \"\", \"%s\" # MODE?\n"
  818. "IFIELD IGNORE, \"\", \"%s\" # JOURNEY_INDEX?\n"
  819. "IFIELD IGNORE, \"\", \"%s\" # ?\n"
  820. ;
  821. static char mapconverter[] =
  822. "# Format: Mapopolis.com Mapconverter\n"
  823. "# Author: Gary Paulson\n"
  824. "# Date: 01/13/2003\n"
  825. "# Requires unsupported mapconverter.exe from mapopolis.com.\n"
  826. "#\n"
  827. "# Modifications by Alex Mottram documented 6/30/2003\n"
  828. "# Change %-40.40s on description output to %-.40s to stop padding.\n"
  829. "# Add QUOTE as badchars, remove COMMA.\n"
  830. "# Removed Mapconverter.exe's README information from style file.\n"
  831. "# Changed OFIELD to IFIELD in case you ever want to read one of these things.\n"
  832. "#\n"
  833. "#\n"
  834. "DESCRIPTION Mapopolis.com Mapconverter CSV\n"
  835. "EXTENSION txt\n"
  836. "# FILE LAYOUT DEFINITIIONS:\n"
  837. "FIELD_DELIMITER COMMASPACE\n"
  838. "RECORD_DELIMITER NEWLINE\n"
  839. "BADCHARS \",\n"
  840. "# Map Info Record (header):\n"
  841. "PROLOGUE M, \"Geocaches\", \"GPSBabel\", Geocaches, __FILE__\n"
  842. "#\n"
  843. "#\n"
  844. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  845. "#\n"
  846. "# L Records:\n"
  847. "IFIELD CONSTANT, \"L\", \"%s\" # [L]ANDMARK\n"
  848. "IFIELD CONSTANT, \"Geocaches\", \"%s\" # Category for Landmark Searches\n"
  849. "IFIELD DESCRIPTION, \"\", \"%-.40s\" # Name\n"
  850. "IFIELD CONSTANT, \"1\", \"%s\" # View at Zoom Level 1 (1-4)\n"
  851. "IFIELD LON_DECIMAL, \"\", \"%08.5f\" # Longitude\n"
  852. "IFIELD LAT_DECIMAL, \"\", \"%08.5f\" # Latitude\n"
  853. ;
  854. static char motoactv[] =
  855. "# gpsbabel XCSV style file\n"
  856. "#\n"
  857. "# Format: MOTOACTV CSV\n"
  858. "# Author: Dan Brown\n"
  859. "# Date: 07/21/2012\n"
  860. "#\n"
  861. "# example usage:\n"
  862. "# gpsbabel -i xcsv,style=motoactv.style -f infile.csv -x transform,trk=wpt -o gtrnctr,course=0 -F outfile.tcx\n"
  863. "# gpsbabel -i xcsv,style=motoactv.style -f infile.csv -x transform,trk=wpt -o gpx,garminextensions -F outfile.gpx\n"
  864. "DESCRIPTION Motoactiv CSV\n"
  865. "EXTENSION csv\n"
  866. "ENCODING US-ASCII\n"
  867. "FIELD_DELIMITER COMMA\n"
  868. "RECORD_DELIMITER NEWLINE\n"
  869. "FIELD_ENCLOSER DOUBLEQUOTE\n"
  870. "PROLOGUE \"DISTANCE\",\"activity_id\",\"HEARTRATE\",\"SPEED\",\"STEPS_PER_MINUTE\",\"LATITUDE\",\"repetitions\",\"temperature\",\"INSTANT_TORQUE_CRANK\",\"timestamp_epoch\",\"ELEVATION\",\"POWER\",\"STRIDES\",\"wheel_torque\",\"CALORIEBURN\",\"LONGITUDE\",\"CADENCE\",\"heading\",\"STEP_RATE\"\n"
  871. "# Data fields, in order of appearance\n"
  872. "IFIELD PATH_DISTANCE_METERS,\"\",\"%.1f\" # used for writing files (not for reading)\n"
  873. "IFIELD IGNORE,\"\",\"%s\" # activity id\n"
  874. "IFIELD HEART_RATE,\"\",\"%d\"\n"
  875. "IFIELD PATH_SPEED,\"\",\"%.1f\"\n"
  876. "IFIELD IGNORE,\"\",\"%s\" # steps per minute\n"
  877. "IFIELD LAT_DECIMAL,\"\",\"%.6f\"\n"
  878. "IFIELD IGNORE,\"\",\"%s\" # repetitions\n"
  879. "IFIELD TEMPERATURE,\"\",\"%.1f\"\n"
  880. "IFIELD IGNORE,\"\",\"%s\" # instant torque crank\n"
  881. "IFIELD TIMET_TIME_MS,\"\",\"%ld\"\n"
  882. "IFIELD ALT_METERS,\"\",\"%.1f\"\n"
  883. "IFIELD POWER,\"\",\"%.0f\"\n"
  884. "IFIELD IGNORE,\"\",\"%s\" # strides\n"
  885. "IFIELD IGNORE,\"\",\"%s\" # wheel_torque\n"
  886. "IFIELD IGNORE,\"\",\"%s\" # calories\n"
  887. "IFIELD LON_DECIMAL,\"\",\"%.6f\"\n"
  888. "IFIELD CADENCE,\"\",\"%d\"\n"
  889. "IFIELD PATH_COURSE,\"\",\"%.1f\"\n"
  890. "IFIELD IGNORE,\"\",\"%s\" # step rate\n"
  891. ;
  892. static char mxf[] =
  893. "# gpsbabel XCSV style file\n"
  894. "#\n"
  895. "# Format: Ozi Explorer\n"
  896. "# Author: Alex Mottram\n"
  897. "# Date: 12/09/2002\n"
  898. "#\n"
  899. "#\n"
  900. "# As used in mxf.c\n"
  901. "#\n"
  902. "#\n"
  903. "DESCRIPTION MapTech Exchange Format\n"
  904. "EXTENSION mxf\n"
  905. "#\n"
  906. "# FILE LAYOUT DEFINITIIONS:\n"
  907. "#\n"
  908. "FIELD_DELIMITER COMMASPACE\n"
  909. "RECORD_DELIMITER NEWLINE\n"
  910. "BADCHARS ,\"\n"
  911. "#\n"
  912. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  913. "#\n"
  914. "IFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  915. "IFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  916. "IFIELD DESCRIPTION, \"\", \"\"%s\"\"\n"
  917. "IFIELD SHORTNAME, \"\", \"\"%s\"\"\n"
  918. "IFIELD IGNORE, \"\", \"%s\"\n"
  919. "IFIELD CONSTANT, \"ff0000\", \"%s\" # COLOR\n"
  920. "IFIELD CONSTANT, \"47\", \"%s\" # ICON\n"
  921. "OFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  922. "OFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  923. "OFIELD DESCRIPTION, \"\", \"\"%s\"\"\n"
  924. "OFIELD SHORTNAME, \"\", \"\"%s\"\"\n"
  925. "OFIELD DESCRIPTION, \"\", \"\"%s\"\"\n"
  926. "OFIELD CONSTANT, \"ff0000\", \"%s\" # COLOR\n"
  927. "OFIELD CONSTANT, \"47\", \"%s\" # ICON\n"
  928. ;
  929. static char navigonwpt[] =
  930. "# gpsbabel XCSV style file\n"
  931. "# Author: Tom Glaab\n"
  932. "#\n"
  933. "DESCRIPTION Navigon Waypoints\n"
  934. "SHORTLEN 8\n"
  935. "#\n"
  936. "#\n"
  937. "# FILE LAYOUT DEFINITIIONS:\n"
  938. "#\n"
  939. "FIELD_DELIMITER |\n"
  940. "RECORD_DELIMITER NEWLINE\n"
  941. "BADCHARS |\n"
  942. "#\n"
  943. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  944. "#\n"
  945. "OFIELD SHORTNAME, \"\",\"[%-.14s \"\n"
  946. "OFIELD CONSTANT, \"%s\",\"\"\n"
  947. "OFIELD CONSTANT, \"\",\"]\"\n"
  948. "OFIELD CONSTANT, \"%s\",\"[0][17]\"\n"
  949. "OFIELD CONSTANT, \"%s\",\"\"\n"
  950. "OFIELD CONSTANT, \"%s\",\"\"\n"
  951. "OFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  952. "OFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  953. "OFIELD CONSTANT, \"%s\",\"\"\n"
  954. "OFIELD CONSTANT, \"%s\",\"\"\n"
  955. "OFIELD CONSTANT, \"%s\",\"\"\n"
  956. "OFIELD CONSTANT, \"%s\",\"\"\n"
  957. "OFIELD CONSTANT, \"%s\",\"\"\n"
  958. "OFIELD CONSTANT, \"%s\",\"\"\n"
  959. "OFIELD CONSTANT, \"%s\",\"\"\n"
  960. "OFIELD CONSTANT, \"%s\",\"\"\n"
  961. "OFIELD CONSTANT, \"%s\",\"\"\n"
  962. "OFIELD CONSTANT, \"%s\",\"\"\n"
  963. "OFIELD CONSTANT, \"%s\",\"\"\n"
  964. "OFIELD CONSTANT, \"%s\",\"\"\n"
  965. "OFIELD CONSTANT, \"%s\",\"\"\n"
  966. "OFIELD CONSTANT, \"%s\",\"\"\n"
  967. "OFIELD CONSTANT, \"%s\",\"49\"\n"
  968. ;
  969. static char nima[] =
  970. "# gpsbabel XCSV style file\n"
  971. "#\n"
  972. "# Format: NIMA/GNIS Geographic Names File\n"
  973. "# Author: Alex Mottram\n"
  974. "# Date: 11/24/2002\n"
  975. "#\n"
  976. "DESCRIPTION NIMA/GNIS Geographic Names File\n"
  977. "#\n"
  978. "# FILE LAYOUT DEFINITIIONS:\n"
  979. "#\n"
  980. "FIELD_DELIMITER TAB\n"
  981. "RECORD_DELIMITER NEWLINE\n"
  982. "BADCHARS TAB\n"
  983. "PROLOGUE RC UFI UNI DD_LAT DD_LONG DMS_LAT DMS_LONG UTM JOG FC DSG PC CC1 ADM1 ADM2 DIM CC2 NT LC SHORT_FORM GENERIC SORT_NAME FULL_NAME FULL_NAME_ND MODIFY_DATE\n"
  984. "#\n"
  985. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  986. "#\n"
  987. "IFIELD IGNORE, \"\", \"%s\" # RC\n"
  988. "IFIELD IGNORE, \"\", \"%s\" # UFI\n"
  989. "IFIELD IGNORE, \"\", \"%s\" # UNI\n"
  990. "IFIELD LAT_DECIMAL, \"\", \"%f\" # DD_LAT\n"
  991. "IFIELD LON_DECIMAL, \"\", \"%f\" # DD_LON\n"
  992. "IFIELD IGNORE, \"\", \"%s\" # DMS_LAT\n"
  993. "IFIELD IGNORE, \"\", \"%s\" # DMS_LON\n"
  994. "IFIELD IGNORE, \"\", \"%s\" # UTM\n"
  995. "IFIELD IGNORE, \"\", \"%s\" # JOG\n"
  996. "IFIELD IGNORE, \"\", \"%s\" # FC\n"
  997. "IFIELD IGNORE, \"\", \"%s\" # DSG\n"
  998. "IFIELD IGNORE, \"\", \"%s\" # PC\n"
  999. "IFIELD IGNORE, \"\", \"%s\" # CC1\n"
  1000. "IFIELD IGNORE, \"\", \"%s\" # ADM1\n"
  1001. "IFIELD IGNORE, \"\", \"%s\" # ADM2\n"
  1002. "IFIELD IGNORE, \"\", \"%s\" # DIM\n"
  1003. "IFIELD IGNORE, \"\", \"%s\" # CC2\n"
  1004. "IFIELD IGNORE, \"\", \"%s\" # NT\n"
  1005. "IFIELD IGNORE, \"\", \"%s\" # LC\n"
  1006. "IFIELD IGNORE, \"\", \"%s\" # SHORT_FORM\n"
  1007. "IFIELD IGNORE, \"\", \"%s\" # GENERIC\n"
  1008. "IFIELD SHORTNAME, \"\", \"%s\" # SORT_NAME\n"
  1009. "IFIELD IGNORE, \"\", \"%s\" # FULL_NAME (unicoded!)\n"
  1010. "IFIELD DESCRIPTION, \"\", \"%s\" # FULL_NAME_ND\n"
  1011. "IFIELD IGNORE, \"\", \"%s\" # MODIFY_DATE\n"
  1012. ;
  1013. static char openoffice[] =
  1014. "# gpsbabel XCSV style file\n"
  1015. "#\n"
  1016. "# Format: Tab delimited useful for OpenOffice, Ploticus etc.\n"
  1017. "# Author: Tobias Minich\n"
  1018. "# Date: 07/18/2005\n"
  1019. "#\n"
  1020. "#\n"
  1021. "DESCRIPTION Tab delimited fields useful for OpenOffice, Ploticus etc.\n"
  1022. "# FILE LAYOUT DEFINITIIONS:\n"
  1023. "#\n"
  1024. "FIELD_DELIMITER TAB\n"
  1025. "RECORD_DELIMITER NEWLINE\n"
  1026. "BADCHARS TAB\n"
  1027. "#\n"
  1028. "# HEADER STUFF:\n"
  1029. "#\n"
  1030. "PROLOGUE Index Lat Lon Icon Name Description Notes URL Link Text Altitude (m) Distance (km) Speed (m/s) Course (°) Time HDOP VDOP PDOP Satellites Fix\n"
  1031. "#\n"
  1032. "# INDIVIDUAL DATA FIELDS:\n"
  1033. "#\n"
  1034. "IFIELD INDEX, \"\", \"%d\"\n"
  1035. "IFIELD LAT_DECIMAL, \"\", \"%f\"\n"
  1036. "IFIELD LAT_DIR, \"\", \"%c\"\n"
  1037. "IFIELD LAT_HUMAN_READABLE, \"\", \"%d° %f' %c\"\n"
  1038. "IFIELD LON_DECIMAL, \"\", \"%f\"\n"
  1039. "IFIELD LON_DIR, \"\", \"%c\"\n"
  1040. "IFIELD LON_HUMAN_READABLE, \"\", \"%d° %f' %c\"\n"
  1041. "IFIELD ICON_DESCR, \"\", \"%s\"\n"
  1042. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  1043. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  1044. "IFIELD NOTES, \"\", \"%s\"\n"
  1045. "IFIELD URL, \"\", \"%s\" \n"
  1046. "IFIELD URL_LINK_TEXT, \"\", \"%s\"\n"
  1047. "IFIELD ALT_METERS, \"\", \"%f\"\n"
  1048. "IFIELD PATH_DISTANCE_KM, \"\", \"%f\"\n"
  1049. "IFIELD PATH_SPEED, \"\", \"%f\"\n"
  1050. "IFIELD PATH_COURSE, \"\", \"%f\"\n"
  1051. "IFIELD EXCEL_TIME, \"\", \"%f\"\n"
  1052. "IFIELD GPS_HDOP, \"\", \"%f\"\n"
  1053. "IFIELD GPS_VDOP, \"\", \"%f\"\n"
  1054. "IFIELD GPS_PDOP, \"\", \"%f\"\n"
  1055. "IFIELD GPS_SAT, \"\", \"%d\"\n"
  1056. "IFIELD GPS_FIX, \"\", \"%s\"\n"
  1057. ;
  1058. static char ricoh[] =
  1059. "DESCRIPTION Ricoh GPS Log File\n"
  1060. "EXTENSION log\n"
  1061. "DATATYPE TRACK\n"
  1062. "FIELD_DELIMITER COMMA\n"
  1063. "RECORD_DELIMITER NEWLINE\n"
  1064. "IFIELD LON_DECIMAL,\"\",\"%f\"\n"
  1065. "IFIELD LAT_DECIMAL,\"\",\"%f\"\n"
  1066. "IFIELD ALT_METERS,\"\",\"%f\"\n"
  1067. "IFIELD TRACK_NEW,\"\",\"%d\"\n"
  1068. "IFIELD GMT_TIME,\"\",\"%d-%m-%Y %H:%M:%S\"\n"
  1069. ;
  1070. static char s_and_t[] =
  1071. "# gpsbabel XCSV style file\n"
  1072. "#\n"
  1073. "# Format: MS S&T 2002/2003\n"
  1074. "# Author: Alex Mottram\n"
  1075. "# Date: 12/09/2002\n"
  1076. "#\n"
  1077. "#\n"
  1078. "# As requested by Noel Shrum on the gpsbabel-code mailing list.\n"
  1079. "# Name,Latitude,Longitude,Name 2,URL,Type\n"
  1080. "# GCCBF,44.479133,-85.56515,High Rollaway by rjlint,http://www.geocaching.com/seek/cache_details.aspx?ID=3263,Traditional Cache\n"
  1081. "# GC110D,44.6522,-85.492483,Brown Bridge Pond Peek-a-Boo Cache by Big Bird,http://www.geocaching.com/seek/cache_details.aspx?ID=4365,Traditional Cache\n"
  1082. "# GC171C,44.70605,-85.62265,The Michigan Frog by RealDcoy & LRB,http://www.geocaching.com/seek/cache_details.aspx?ID=5916,Traditional Cache\n"
  1083. "#\n"
  1084. "DESCRIPTION Microsoft Streets and Trips 2002-2007\n"
  1085. "EXTENSION txt\n"
  1086. "#\n"
  1087. "# FILE LAYOUT DEFINITIIONS:\n"
  1088. "#\n"
  1089. "FIELD_DELIMITER TAB\n"
  1090. "RECORD_DELIMITER NEWLINE\n"
  1091. "BADCHARS ,\"\n"
  1092. "PROLOGUE Name Latitude Longitude Description URL Type Container Diff Terr\n"
  1093. "#\n"
  1094. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1095. "# NOTE: MS S&T ONLY IMPORTS DATA, IT DOESN'T EXPORT THIS ANYWHERE SO WE CAN\n"
  1096. "# HAVE OUR WAY WITH THE FORMATTING. \n"
  1097. "#\n"
  1098. "IFIELD SHORTNAME, \"\", \"%s\" # Name\n"
  1099. "IFIELD LAT_DECIMAL, \"\", \"%f\" # Latitude\n"
  1100. "IFIELD LON_DECIMAL, \"\", \"%f\" # Longitude\n"
  1101. "IFIELD DESCRIPTION, \"\", \"%s\" # Name 2 (Big Description)\n"
  1102. "IFIELD URL, \"\", \"%s\" # URL\n"
  1103. "IFIELD GEOCACHE_TYPE, \"\", \"%s\" # Geocache Type\n"
  1104. "IFIELD GEOCACHE_CONTAINER, \"\", \"%s\" # Geocache Type\n"
  1105. "IFIELD GEOCACHE_DIFF, \"\", \"%3.1f\" # Geocache Type\n"
  1106. "IFIELD GEOCACHE_TERR, \"\", \"%3.1f\" # Geocache Type\n"
  1107. ;
  1108. static char saplus[] =
  1109. "# gpsbabel XCSV style file\n"
  1110. "#\n"
  1111. "# Format:\n"
  1112. "# Author: Jim Bensman\n"
  1113. "# Date: 02/22/04\n"
  1114. "#\n"
  1115. "DESCRIPTION DeLorme Street Atlas Plus\n"
  1116. "#\n"
  1117. "# FILE LAYOUT DEFINITIIONS:\n"
  1118. "#\n"
  1119. "FIELD_DELIMITER COMMA\n"
  1120. "RECORD_DELIMITER NEWLINE\n"
  1121. "BADCHARS ,\"\n"
  1122. "PROLOGUE Name 2,Name,Latitude,Longitude,URL,Type\n"
  1123. "#\n"
  1124. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1125. "#\n"
  1126. "IFIELD DESCRIPTION, \"\", \"%s\" # Name 2 (Big Description)\n"
  1127. "IFIELD SHORTNAME, \"\", \"%s\" # Name\n"
  1128. "IFIELD LAT_DECIMAL, \"\", \"%f\" # Latitude\n"
  1129. "IFIELD LON_DECIMAL, \"\", \"%f\" # Longitude\n"
  1130. "IFIELD URL, \"\", \"%s\" # URL\n"
  1131. "IFIELD IGNORE, \"\", \"\" # Holder for Geocache Type\n"
  1132. ;
  1133. static char tabsep[] =
  1134. "# gpsbabel XCSV style file\n"
  1135. "#\n"
  1136. "# Format: Dumps all fields in a traditional Unix tab separated style\n"
  1137. "#\n"
  1138. "# The order of the fields (with the exception of LAT_DIR/LON_DIR) was\n"
  1139. "# the same as documented in README.style when this format was created.\n"
  1140. "# LAT_DIR/LON_DIR were undocumented, so I stuck them at the end of the\n"
  1141. "# other lat/lon fields.\n"
  1142. "#\n"
  1143. "# However, please add any new gpsbabel fields to the end (to avoid\n"
  1144. "# upsetting existing applications) regardless of where they land in\n"
  1145. "# the README.style documentation.\n"
  1146. "#\n"
  1147. "DESCRIPTION All database fields on one tab-separated line\n"
  1148. "# FILE LAYOUT DEFINITIIONS:\n"
  1149. "#\n"
  1150. "FIELD_DELIMITER TAB\n"
  1151. "RECORD_DELIMITER NEWLINE\n"
  1152. "BADCHARS TAB\n"
  1153. "FORMAT_TYPE INTERNAL\n"
  1154. "#\n"
  1155. "# INDIVIDUAL DATA FIELDS:\n"
  1156. "#\n"
  1157. "IFIELD INDEX, \"\", \"%d\"\n"
  1158. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  1159. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  1160. "IFIELD NOTES, \"\", \"%s\"\n"
  1161. "IFIELD URL, \"\", \"%s\"\n"
  1162. "IFIELD URL_LINK_TEXT, \"\", \"%s\"\n"
  1163. "IFIELD ICON_DESCR, \"\", \"%s\"\n"
  1164. "IFIELD LAT_DECIMAL, \"\", \"%f\"\n"
  1165. "IFIELD LON_DECIMAL, \"\", \"%f\"\n"
  1166. "IFIELD LAT_INT32DEG, \"\", \"%ld\"\n"
  1167. "IFIELD LON_INT32DEG, \"\", \"%ld\"\n"
  1168. "IFIELD LAT_DECIMALDIR, \"\", \"%f%c\"\n"
  1169. "IFIELD LON_DECIMALDIR, \"\", \"%f%c\"\n"
  1170. "IFIELD LAT_DIRDECIMAL, \"\", \"%c%f\"\n"
  1171. "IFIELD LON_DIRDECIMAL, \"\", \"%c%f\"\n"
  1172. "IFIELD LAT_DIR, \"\", \"%c\"\n"
  1173. "IFIELD LON_DIR, \"\", \"%c\"\n"
  1174. "IFIELD ALT_FEET, \"\", \"%fF\"\n"
  1175. "IFIELD ALT_METERS, \"\", \"%fM\"\n"
  1176. "IFIELD EXCEL_TIME, \"\", \"%f\"\n"
  1177. "IFIELD TIMET_TIME, \"\", \"%ld\"\n"
  1178. "IFIELD GEOCACHE_DIFF,\"\",\"%3.1f\"\n"
  1179. "IFIELD GEOCACHE_TERR,\"\",\"%3.1f\"\n"
  1180. "IFIELD GEOCACHE_CONTAINER,\"\",\"%s\"\n"
  1181. "IFIELD GEOCACHE_TYPE,\"\",\"%s\"\n"
  1182. "IFIELD PATH_DISTANCE_MILES,\"\",\"%f\"\n"
  1183. "IFIELD PATH_DISTANCE_KM, \"\", \"%f\"\n"
  1184. "IFIELD GEOCACHE_PLACER,\"\",\"%s\"\n"
  1185. "IFIELD YYYYMMDD_TIME,\"\",\"%ld\"\n"
  1186. "IFIELD GEOCACHE_HINT, \"\", \"%s\"\n"
  1187. "IFIELD GEOCACHE_LAST_FOUND, \"\", \"%d\"\n"
  1188. ;
  1189. static char tomtom_asc[] =
  1190. "# gpsbabel XCSV style file\n"
  1191. "#\n"
  1192. "# Format: TomTom Navigator Places of Interest\n"
  1193. "# Author: Olaf Klein\n"
  1194. "# Date: 04/17/2007\n"
  1195. "#\n"
  1196. "DESCRIPTION TomTom POI file (.asc)\n"
  1197. "EXTENSION asc\n"
  1198. "DATATYPE WAYPOINT\n"
  1199. "#\n"
  1200. "# FILE LAYOUT DEFINITIIONS:\n"
  1201. "#\n"
  1202. "FIELD_DELIMITER COMMA\n"
  1203. "RECORD_DELIMITER CRNEWLINE\n"
  1204. "BADCHARS ,\"\n"
  1205. "ENCODING windows-1252\n"
  1206. "#\n"
  1207. "PROLOGUE TomTom Navigator Places of Interest\n"
  1208. "PROLOGUE GPSBabel-__VERSION__ ASCII Export\n"
  1209. "PROLOGUE Points\n"
  1210. "PROLOGUE Created at: __DATE_AND_TIME__\n"
  1211. "# #\n"
  1212. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1213. "#\n"
  1214. "IFIELD LON_DECIMAL, \"\", \"%.6f\"\n"
  1215. "IFIELD LAT_DECIMAL, \"\", \"%.6f\"\n"
  1216. "IFIELD SHORTNAME, \"\", \"\"%s\"\"\n"
  1217. ;
  1218. static char tomtom_itn[] =
  1219. "# gpsbabel XCSV style file\n"
  1220. "#\n"
  1221. "# Format: TomTom Navigator Itineraries (Routes)\n"
  1222. "# Author: Olaf Klein\n"
  1223. "# Date: 04/17/2007\n"
  1224. "#\n"
  1225. "DESCRIPTION TomTom Itineraries (.itn)\n"
  1226. "EXTENSION itn\n"
  1227. "DATATYPE ROUTE\n"
  1228. "#\n"
  1229. "# FILE LAYOUT DEFINITIIONS:\n"
  1230. "#\n"
  1231. "FIELD_DELIMITER PIPE\n"
  1232. "RECORD_DELIMITER CRNEWLINE\n"
  1233. "BADCHARS ,|\n"
  1234. "ENCODING windows-1252\n"
  1235. "#\n"
  1236. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1237. "#\n"
  1238. "IFIELD LON_10E5, \"\", \"%.0f\"\n"
  1239. "IFIELD LAT_10E5, \"\", \"%.0f\"\n"
  1240. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  1241. "IFIELD CONSTANT, \"0\", \"%s\"\n"
  1242. ;
  1243. static char tomtom_itn_places[] =
  1244. "# gpsbabel XCSV style file\n"
  1245. "#\n"
  1246. "# Format: TomTom Navigator Itineraries (Routes)\n"
  1247. "# Author: Olaf Klein\n"
  1248. "# Date: 04/17/2007\n"
  1249. "#\n"
  1250. "DESCRIPTION TomTom Places Itineraries (.itn)\n"
  1251. "EXTENSION itn\n"
  1252. "DATATYPE ROUTE\n"
  1253. "#\n"
  1254. "# FILE LAYOUT DEFINITIIONS:\n"
  1255. "#\n"
  1256. "FIELD_DELIMITER PIPE\n"
  1257. "RECORD_DELIMITER CRNEWLINE\n"
  1258. "BADCHARS ,|\n"
  1259. "ENCODING windows-1252\n"
  1260. "#\n"
  1261. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1262. "#\n"
  1263. "IFIELD LON_10E5, \"\", \"%.f\"\n"
  1264. "IFIELD LAT_10E5, \"\", \"%.f\"\n"
  1265. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  1266. "IFIELD CONSTANT, \"2\", \"%s\"\n"
  1267. ;
  1268. static char xmap[] =
  1269. "# gpsbabel XCSV style file\n"
  1270. "#\n"
  1271. "# Format: DeLorme Xmap Conduit\n"
  1272. "# Author: Alex Mottram\n"
  1273. "# Date: 12/09/2002\n"
  1274. "#\n"
  1275. "#\n"
  1276. "# As defined in csv.c/xmap\n"
  1277. "#\n"
  1278. "DESCRIPTION DeLorme XMap HH Native .WPT\n"
  1279. "EXTENSION wpt\n"
  1280. "#\n"
  1281. "# FILE LAYOUT DEFINITIIONS:\n"
  1282. "#\n"
  1283. "FIELD_DELIMITER COMMASPACE\n"
  1284. "RECORD_DELIMITER NEWLINE\n"
  1285. "BADCHARS COMMA\n"
  1286. "PROLOGUE BEGIN SYMBOL\n"
  1287. "EPILOGUE END\n"
  1288. "#\n"
  1289. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1290. "#\n"
  1291. "IFIELD LAT_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  1292. "IFIELD LON_HUMAN_READABLE, \"\", \"%08.5f\"\n"
  1293. "IFIELD DESCRIPTION, \"\", \"%s\"\n"
  1294. "OFIELD LAT_DECIMAL, \"\", \"%08.5f\"\n"
  1295. "OFIELD LON_DECIMAL, \"\", \"%08.5f\"\n"
  1296. "OFIELD DESCRIPTION, \"\", \"%s\"\n"
  1297. ;
  1298. static char xmap2006[] =
  1299. "# gpsbabel XCSV style file\n"
  1300. "#\n"
  1301. "# Format: DeLorme Xmap/Street Atlas Handheld 2006 Conduit\n"
  1302. "# Author: Pasha Phares\n"
  1303. "# Date: 5/5/2006\n"
  1304. "#\n"
  1305. "# Amazingly, 2006 won't read the \"COMMASPACE\" that we used in\n"
  1306. "# in Xmap prior to this and versions before 2006 won't read files\n"
  1307. "# separated by only a comma.\n"
  1308. "#\n"
  1309. "DESCRIPTION DeLorme XMap/SAHH 2006 Native .TXT\n"
  1310. "EXTENSION txt\n"
  1311. "#\n"
  1312. "# FILE LAYOUT DEFINITIIONS:\n"
  1313. "#\n"
  1314. "FIELD_DELIMITER COMMA\n"
  1315. "RECORD_DELIMITER NEWLINE\n"
  1316. "BADCHARS COMMA\n"
  1317. "PROLOGUE BEGIN SYMBOL\n"
  1318. "EPILOGUE END\n"
  1319. "#\n"
  1320. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1321. "#\n"
  1322. "IFIELD LAT_HUMAN_READABLE, \"\", \"%.12g\"\n"
  1323. "IFIELD LON_HUMAN_READABLE, \"\", \"%.12g\"\n"
  1324. "IFIELD SHORTNAME, \"\", \"%s\"\n"
  1325. "OFIELD LAT_DECIMAL, \"\", \"%.12g\"\n"
  1326. "OFIELD LON_DECIMAL, \"\", \"%.12g\"\n"
  1327. "OFIELD SHORTNAME, \"\", \"%s\"\n"
  1328. ;
  1329. static char xmapwpt[] =
  1330. "# gpsbabel XCSV style file\n"
  1331. "#\n"
  1332. "# Format: DeLorme Xmap HH Street Atlas USA .WPT (PocketPC)\n"
  1333. "# Author: Alex Mottram\n"
  1334. "# Date: 12/09/2002\n"
  1335. "#\n"
  1336. "#\n"
  1337. "DESCRIPTION DeLorme XMat HH Street Atlas USA .WPT (PPC)\n"
  1338. "SHORTLEN 32\n"
  1339. "SHORTWHITE 0\n"
  1340. "#\n"
  1341. "#\n"
  1342. "# FILE LAYOUT DEFINITIIONS:\n"
  1343. "#\n"
  1344. "FIELD_DELIMITER COLON\n"
  1345. "RECORD_DELIMITER NEWLINE\n"
  1346. "BADCHARS COLON\n"
  1347. "#\n"
  1348. "# INDIVIDUAL DATA FIELDS, IN ORDER OF APPEARANCE:\n"
  1349. "#\n"
  1350. "IFIELD CONSTANT, \"1296126539\", \"%s\"\n"
  1351. "IFIELD CONSTANT, \"1481466224\", \"%s\"\n"
  1352. "IFIELD LAT_INT32DEG, \"\", \"%d\"\n"
  1353. "IFIELD LON_INT32DEG, \"\", \"%d\"\n"
  1354. "IFIELD CONSTANT, \"3137157\", \"%s\"\n"
  1355. "IFIELD SHORTNAME, \"\", \"%-.31s\"\n"
  1356. "IFIELD IGNORE, \"\", \"%-.31s\"\n"
  1357. "IFIELD DESCRIPTION, \"\", \"%-.78s\"\n"
  1358. ;
  1359. style_vecs_t style_list[] = {{ "xmapwpt", xmapwpt } , { "xmap2006", xmap2006 } , { "xmap", xmap } , { "tomtom_itn_places", tomtom_itn_places } , { "tomtom_itn", tomtom_itn } , { "tomtom_asc", tomtom_asc } , { "tabsep", tabsep } , { "saplus", saplus } , { "s_and_t", s_and_t } , { "ricoh", ricoh } , { "openoffice", openoffice } , { "nima", nima } , { "navigonwpt", navigonwpt } , { "mxf", mxf } , { "motoactv", motoactv } , { "mapconverter", mapconverter } , { "mainnav", mainnav } , { "land_air_sea", land_air_sea } , { "kompass_wp", kompass_wp } , { "kompass_tk", kompass_tk } , { "igo2008_poi", igo2008_poi } , { "igoprimo_poi", igoprimo_poi } , { "iblue757", iblue757 } , { "iblue747", iblue747 } , { "gpsman", gpsman } , { "gpsdrivetrack", gpsdrivetrack } , { "gpsdrive", gpsdrive } , { "geonet", geonet } , { "garmin_poi", garmin_poi } , { "garmin_g1000", garmin_g1000 } , { "garmin301", garmin301 } , { "fugawi", fugawi } , { "flysight", flysight } , { "dna", dna } , { "custom", custom } , { "cup", cup } , { "csv", csv } , { "cambridge", cambridge } , { "arc", arc } , {0,0}};
  1360. size_t nstyles = 39;
  1361. #else /* CSVFMTS_ENABLED */
  1362. style_vecs_t style_list[] = {{0,0}};
  1363. size_t nstyles = 0;
  1364. #endif /* CSVFMTS_ENABLED */