Re: [Gpsbabel-misc] Problem with converting .csv to .ov2
GPSBabel converts and transfers data like waypoints, tracks & routes.
Brought to you by:
robertl
|
From: John B. <jo...@uk...> - 2017-08-31 09:58:42
|
Well, I finally managed to create an OV2 file that contained all the contents of the separate files by simply concatenating the OV2 versions of the separate files using the linux cat command: cat file1.ov2 file2.ov2 .... filen.ov2 > ALL.ov2 I wanted to add an indication of the type of location e.g [AA] as shown in the CSV below, but it's better than nothing until I can find a way to use the CSV to OV2 conversion. On 30/08/17 16:54, John Bingham wrote: > I'm trying to combine several POI files into one for use in my Tomtom > Go-Live. > > I've a set of CSV files that I've concatenated successfully using > gpsbabel with the list of CSV files as input and a single CSV file as > output. I then tried to convert that to OV2 but the result doesn't work > on the Tomtom and trying to convert the generated OV2 back to CSV using > gpsbabel throws up an error "TomTom:malformed file. Bad record size." > > The first few lines of the CSV file are as follows: > > 03.92457, 49.45155, [AA] A26 Saint Quentin Reims Mont De Nizy > 03.92834, 49.44394, [AA] A26 Reims Saint Quentin Mont De Nizy > 02.53982, 43.17714, [AA] A61 Toulouse-Narbonne Corbieres Sud > 02.54445, 43.17821, [AA] A61 Narbonne-Toulouse Aire Des Corbieres Nord > 03.08970, 43.21291, [AA] A.9 France-Espagne Narbonne Vinassan Nord > > A hex dump of the beginning of the generated OV2 file is as follows: > > 00000000: 01cc 8710 0038 986c 0007 062f 00bb 7d29 .....8.l.../..}) > 00000010: 00fc 80e6 ff01 2e6b 0800 3898 6c00 2c68 .......k..8.l.,h > 00000020: 0200 bb7d 2900 fc80 e6ff 01c8 2904 0097 ...}).......)... > 00000030: eb4d 002c 6802 00bb 7d29 00fc 80e6 ff01 .M.,h...})...... > 00000040: 1e15 0200 f4c8 4700 2c68 0200 bb7d 2900 ......G.,h...}). > 00000050: fc80 e6ff 011e 0801 0004 b342 002c 6802 ...........B.,h. > 00000060: 00bb 7d29 00fc 80e6 ff01 6e86 0000 04b3 ..})......n..... > 00000070: 4200 4281 faff bb7d 2900 fc80 e6ff 0138 B.B....})......8 > 00000080: 4400 0089 293c 0042 81fa ffbb 7d29 00fc D...)<.B....}).. > 00000090: 80e6 ff01 4522 0000 8929 3c00 35b3 f4ff ....E"...)<.5... > 000000a0: bb7d 2900 fc80 e6ff 01f7 1000 00d9 f638 .})............8 > 000000b0: 0035 b3f4 ffbb 7d29 00fc 80e6 ff01 5608 .5....})......V. > 000000c0: 0000 c297 3800 35b3 f4ff bb7d 2900 fc80 ....8.5....})... > 000000d0: e6ff 013a 0400 0094 6130 0035 b3f4 ffbb ...:....a0.5.... > 000000e0: 7d29 00fc 80e6 ff01 0702 0000 9461 3000 })...........a0. > 000000f0: f41e f1ff bb7d 2900 fc80 e6ff 0222 0000 .....})......".. > 00000100: 0098 ca2a 00fc 80e6 ff5b 4153 4e5d 2041 ...*.....[ASN] A > 00000110: 7620 4a75 616e 2043 6172 6c6f 7300 0231 v Juan Carlos..1 > 00000120: 0000 00bb 7d29 0066 92eb ff5b 4153 4e5d ....}).f...[ASN] > 00000130: 2046 6f75 6d20 456c 204f 7565 6420 4775 Foum El Oued Gu > 00000140: 6172 6469 616e 2050 6172 6b69 6e67 0002 ardian Parking.. > 00000150: 2400 0000 d20a 2b00 2804 eeff 5b41 504e $.....+.(...[APN > 00000160: 5d20 4f75 6564 204f 756d 6120 4661 746d ] Oued Ouma Fatm > 00000170: 6168 0002 2500 0000 827a 2b00 c4b3 eeff ah..%....z+..... > > Looking at hex dumps of the start of various OV2 files that do work, > they all seem to begin with 02 and the text description starts on the > first line of the dump; e.g.: > > 00000000: 022c 0000 00f9 e9fe ff60 d350 0041 3120 .,.......`.P.A1 > 00000010: 466f 7374 6f6e 2042 792d 7061 7373 2028 Foston By-pass ( > > Maybe there is something wrong with my CSV format. Any suggestions Please? > > |