371 |
} |
} |
372 |
g_strfreev (pfxsplit); |
g_strfreev (pfxsplit); |
373 |
|
|
374 |
/* add some spaces when possible, so the countrylabel will display nicely, |
/* add some spaces when possible, so the countrylabel will display nicely */ |
|
* this string contains markups, so we have to escape the ampersand.... |
|
|
*/ |
|
375 |
if (g_strrstr(split[1], "..")) |
if (g_strrstr(split[1], "..")) |
376 |
split[1] = my_strreplace (split[1], "..", " "); |
split[1] = my_strreplace (split[1], "..", " "); |
377 |
if (g_strrstr(split[1], ",")) |
if (g_strrstr(split[1], ",")) |
413 |
if ((p = g_strrstr(split[5], "E"))) |
if ((p = g_strrstr(split[5], "E"))) |
414 |
{ |
{ |
415 |
*p = '\0'; |
*p = '\0'; |
416 |
lon = atof (split[5]) * 100; |
lon = -1 * atof (split[5]) * 100; |
417 |
} |
} |
418 |
else |
else |
419 |
if ((p = g_strrstr(split[5], "W"))) |
if ((p = g_strrstr(split[5], "W"))) |
420 |
{ |
{ |
421 |
*p = '\0'; |
*p = '\0'; |
422 |
lon = -1 * atof (split[5]) * 100; |
lon = atof (split[5]) * 100; |
423 |
} |
} |
424 |
|
|
425 |
/* convert zones */ |
/* convert zones */ |