First of all, thanks everyone involved in the development of this
outstanding piece of software. It does just what I wanted it to do
(after a little work on a minor problem - see below). And I'm
especially pleased to be able to offer this (hopefully useful)
contribution to the project.
GPSBabel version: 1.3.1 (GPSBabel+ on Mac OSX 10.2.8)
Problem description: When converting a waypoint file from CompeGPS
format (.WPT) to Cambridge (.dat) waypoint format, the waypoint
altitudes were completely wrong in the Cambridge file ( as in -19999 or
various similar numbers). I figured the problem might have been due to
an incorrect type formatting on the output, so I hunted around and
tried editing the Cambridge.style file to add the "OFIELD" (output
field) lines which I have attached below. I have not altered the IFIELD
(input field) lines.
I recompiled and it seems to work now, altitudes get converted
correctly. The output altitude field is formatted with no figures after
the decimal point, since GPS altitude isn't sub-meter accuracy as far
as I know. Although not important for most users, I am using gpsbabel
to manage waypoints for gps use in paragliding navigation. Correct
altitude matters, as glide angle calculations and so on use it as input
data.
Just offering the changed .style for others to check and perhaps use in
future releases.
Cheers and thanks again,
Hamish
The lines of text below prefixed with OFIELD should be added to the
cambridge.style file in the styles directory.
I have reproduced the whole style file for context.
DESCRIPTION Cambridge/Winpilot glider software
SHORTLEN 8
EXTENSION dat
#
#
# FILE LAYOUT DEFINITIIONS:
#
FIELD_DELIMITER COMMA
RECORD_DELIMITER NEWLINE
BADCHARS COMMA
IFIELD INDEX,"1","%d"
IFIELD LAT_HUMAN_READABLE,"","%d:%06.3f%c"
IFIELD LON_HUMAN_READABLE,"","%03d:%06.3f%c"
IFIELD ALT_METERS,"","%dM"
IFIELD CONSTANT,"","T"
IFIELD SHORTNAME,"","%s"
IFIELD DESCRIPTION,"","%s"
OFIELD INDEX,"1","%d"
OFIELD LAT_HUMAN_READABLE,"","%d:%06.3f%c"
OFIELD LON_HUMAN_READABLE,"","%03d:%06.3f%c"
OFIELD ALT_METERS,"","%3.0fM"
OFIELD CONSTANT,"","T"
OFIELD SHORTNAME,"","%s"
OFIELD DESCRIPTION,"","%s"
|