| 1 |
<para> |
| 2 |
Unicsv examines the first line of a file to determine the field |
| 3 |
order and field separator in that file. On write, it tries to |
| 4 |
figure out what data it has and writes headers and all the data it can. |
| 5 |
</para> |
| 6 |
<para> |
| 7 |
Fields may be enclosed in double quotes. To include a double quote inside quotes escape it with another double quote. |
| 8 |
</para> |
| 9 |
<para> |
| 10 |
If the first line contains any unenclosed tabs then the data lines are assumed to be tab separated. |
| 11 |
Otherwise if the first line contains any unenclosed semicolons then fields are assumed to be separated by semicolons. |
| 12 |
Otherwise if the first line contains any unenclosed vertical bars then fields are assumed to be separated by vertical bars. |
| 13 |
Otherwise the fields are assumed to be separated by commas. |
| 14 |
</para> |
| 15 |
<para> |
| 16 |
The list of keywords include: |
| 17 |
<screen> |
| 18 |
alt = Elevation (in meters). For feet use "alt ft", "altft", "alt feet", or "altfeet". |
| 19 |
arch = <link linkend="style_def_isarchived">Geocache archived flag</link> |
| 20 |
avail = <link linkend="style_def_isavailable">Geocache available flag</link> |
| 21 |
bng_e = British National Grid's easting |
| 22 |
bng = full coordinate in BNG format (zone easting northing) |
| 23 |
bng_pos = full coordinate in BNG format (zone easting northing) |
| 24 |
bng_n = British National Grid's northing |
| 25 |
bng_z = British National Grid's zone |
| 26 |
caden = Cadence |
| 27 |
comment = Notes |
| 28 |
cont = <link linkend="style_def_geocontainer">Geocache container</link> |
| 29 |
cour = Heading / Course true |
| 30 |
date = Date (yyyy/mm/dd) |
| 31 |
depth = Depth (in meters). For feet use "depth ft", "depthft", "depth feet", or "depthfeet". |
| 32 |
desc = Description |
| 33 |
diff = <link linkend="style_def_geodiff">Geocache difficulty</link> |
| 34 |
ele = Elevation (in meters). For feet use "ele ft", "eleft", "ele feet", or "elefeet". |
| 35 |
e/w = 'e' for eastern hemisphere, 'w' for western |
| 36 |
found = <link linkend="style_def_geofound">Geocache last found date</link> |
| 37 |
fix = 3d, 2d, etc. |
| 38 |
gcid = Geocache cache id. This accepts GC-ID ("575006") and GC-Code ("GC1234G"). |
| 39 |
geschw = Geschwindigkeit (speed) |
| 40 |
hdop = Horizontal dilution of precision |
| 41 |
head = Heading / Course true |
| 42 |
heart = Heartrate |
| 43 |
height = Elevation (in meters). For feet use "height ft", "heightft", "height feet", or "heightfeet". |
| 44 |
hint = <link linkend="style_def_geohint">Geocache cache hint</link> |
| 45 |
icon = Symbol (icon) name |
| 46 |
lat = Latitude |
| 47 |
lon = Longitude |
| 48 |
name = Waypoint name ("Shortname") |
| 49 |
n/s = 'n' for northern hemisphere, 's' for southern |
| 50 |
notes = Notes |
| 51 |
pdop = Position dilution of precision |
| 52 |
placer = <link linkend="style_def_geoplacer">Geocache placer</link> |
| 53 |
placer_id =Geocache placer id |
| 54 |
power = Cycling power (in Watts) |
| 55 |
prox = Proximity (in meters). For feet use "prox ft", "proxft", "prox feet", or "proxfeet". |
| 56 |
sat = Number of sats used for fix |
| 57 |
speed = Speed, in meters per second. (See below) |
| 58 |
symb = Symbol (icon) name |
| 59 |
tempf = Temperature (degrees Fahrenheit) |
| 60 |
temp = Temperature (degrees Celsius) |
| 61 |
terr = <link linkend="style_def_geoterr">Geocache terrain</link> |
| 62 |
time = Time (hh:mm:ss[.msec]) |
| 63 |
type = <link linkend="style_def_geotype">Geocache cache type</link> |
| 64 |
url = URL |
| 65 |
utc_d = UTC date |
| 66 |
utc_t = UTC time |
| 67 |
utm_c = UTM zone character |
| 68 |
utm_e = UTM easting |
| 69 |
utm = full coordinate in UTM format (zone zone-ch easting northing) |
| 70 |
utm_pos = full coordinate in UTM format (zone zone-ch easting northing) |
| 71 |
utm_n = UTM northing |
| 72 |
utm_z = UTM zone |
| 73 |
vdop = Vertical dilution of precision |
| 74 |
x = Longitude |
| 75 |
x_pos = Longitude |
| 76 |
y = Latitude |
| 77 |
y_pos = Latitude |
| 78 |
z = Elevation (in meters) |
| 79 |
</screen> |
| 80 |
We support some enhanced Garmin attributes. They are also available in |
| 81 |
<link linkend="fmt_gpx">gpx</link>, <link linkend="fmt_gdb">gdb</link>, |
| 82 |
<link linkend="fmt_garmin_gpi">garmin_gpi</link> and partly |
| 83 |
<link linkend="fmt_garmin_txt">garmin_txt</link>. These entities are currently |
| 84 |
not visible in <trademark>MapSource</trademark> (6.12.4), but are NOT dropped |
| 85 |
when working with GDB (version 3) or GPX files. |
| 86 |
<screen/> |
| 87 |
Please note, that these do NOT provide a geocoding service; don't expect |
| 88 |
to "convert" a street address to a latitude and longitude. |
| 89 |
<screen> |
| 90 |
addr = Street address |
| 91 |
city = City |
| 92 |
country = Country |
| 93 |
faci = Facility (not available in GPX) |
| 94 |
phone = Phone number |
| 95 |
post = Postal code |
| 96 |
state = State |
| 97 |
</screen> |
| 98 |
Fuller spellings (i.e. "longitude") may be used. You can also |
| 99 |
use keywords with a whitespace instead of an underscore. |
| 100 |
</para> |
| 101 |
<para> |
| 102 |
A typical file may be: |
| 103 |
<screen> |
| 104 |
Name, Latitude, Longitude, Description |
| 105 |
GCEBB,35.972033,-87.134700,Mountain Bike Heaven by susy1313 |
| 106 |
GC1A37,36.090683,-86.679550,The Troll by a182pilot & Family |
| 107 |
</screen> |
| 108 |
</para> |
| 109 |
<para> |
| 110 |
If processing data from the UK, GPSBabel can process coordinates using X,Y values (often referred to as Eastings/Northings) as shown in <xref linkend="uk_unicsv_1"/> or the full 12 figure alpha numeric, as shown in <xref linkend="uk_unicsv_2"/>. |
| 111 |
Note in <xref linkend="uk_unicsv_2"/> you need to split your original X,Y values into the 100Km 2 character code, |
| 112 |
eastings and northing values. |
| 113 |
<example xml:id="uk_unicsv_1"> |
| 114 |
<title>CSV input for UK data with XY coordinates</title> |
| 115 |
<screen> |
| 116 |
bng_e,bng_n,name,date |
| 117 |
353729,177210,id_001,2018/02/03 |
| 118 |
356025,181221,id_002,2018/02/03 |
| 119 |
357962,181528,id_003,2018/03/03 |
| 120 |
</screen> |
| 121 |
</example> |
| 122 |
<example xml:id="uk_unicsv_2"> |
| 123 |
<title>CSV input for UK data with alphanumeric coordinates</title> |
| 124 |
<screen> |
| 125 |
bng_z,bng_e,bng_n,name,date |
| 126 |
ST,53729,77210,id_001,2018/02/03 |
| 127 |
ST,56025,81221,id_002,2018/02/03 |
| 128 |
ST,57962,81528,id_003,2018/03/03 |
| 129 |
</screen> |
| 130 |
</example> |
| 131 |
</para> |
| 132 |
<para> |
| 133 |
On the output side unicsv writes fixed number of columns (waypoint index, latitude and longitude) |
| 134 |
followed by a variable column list depending on internal data. |
| 135 |
</para> |
| 136 |
<para> |
| 137 |
With at least ONE valid timestamp in data a unicsv output may look like that: |
| 138 |
<screen> |
| 139 |
No,Name,Latitude,Longitude,Description,Date,Time |
| 140 |
1,"GCEBB",35.972033,-87.134700,"Mountain Bike Heaven by susy1313",2003/06/29,09:00:00 |
| 141 |
2,"GC1A37",36.090683,-86.679550,"The Troll by a182pilot & Family",, |
| 142 |
</screen> |
| 143 |
</para> |
| 144 |
|
| 145 |
<para> |
| 146 |
For speed, a units specifier can be added to override the default. Here |
| 147 |
are some values, but check parse_speed() in parse.cc for the authoritative |
| 148 |
list. |
| 149 |
<itemizedlist> |
| 150 |
<listitem><para>m/s, mps: meters per second</para></listitem> |
| 151 |
<listitem><para>km/h, kmh: kilometers per hour</para></listitem> |
| 152 |
<listitem><para>kt, knots: knots</para></listitem> |
| 153 |
<listitem><para>mph, mi/h, mih: miles per hour</para></listitem> |
| 154 |
</itemizedlist> |
| 155 |
</para> |