[ gpsdrive ] Waypoint segfault
Hamish
hamish_b at yahoo.com
Sat Nov 15 20:38:35 AKST 2008
chris wrote:
> Is there a limit of waypoints from which you can create a route. I just
> finished plotting a route from local A to local B which includes 203
> waypoints. The tried to create a route from the same and segfault with the
> error message "loop detected, please report!"
>
> wayfile is attached for review if needed
I don't get a "loop detected" error, but a more descriptive error about
problem reading coordinates.
but the short story is that your waypoint file had some errors in it-
you'll have to edit your file to match the rules below.
wpt.txt writing code now fixed in SVN to better handle wpt names when
there is no label. I also updated the gpsdrive man page with some more
hints (copied below).
- Booth Bay looks ok
- Each entry needs needs to start with a label.
- Picton ON: Spaces are not allowed in the label, use underscores "_"
and they'll automatically be converted to spaces [sscanf(%s) rules]
- 4 trailing 0's are optional (in fact the first 3 are totally ignored
and the last set the proximity buffer (meters))
- No label is denoted by an underscore (_)
- For some reason the Picton_ON wpt disappears..?
---man-page---
Importing waypoints
The manual way:
You may create a file "way.txt" in your ~/.gpsdrive directory
which looks like:
DFN-Cert 53.577694 9.991263 FRITZ
Finkenwerder 53.541765 9.842541 AIRPORT
Fritz_Wohnung 53.582700 9.971390 FRITZ
The rows are: {label latitude longitude waypoint-type}. The
label may not exceed 20 characters or contain spaces. Use
underscores (_) in place of spaces, these will automatically
be converted into spaces by the program. A blank label is
denoted by a single underscore.
Latitude and longitude may be in decimal degrees or in the
form of DDDdMM'SS"[NSEW] or DDD:MM:SS[NSEW]. Seconds or min-
utes and seconds may be omitted or in decimal form. Thus the
following are valid: 42d30'55"N, 75:30.6425W, -46.25. In
fact the delimiters can be anything except numbers, ".", or
spaces.
You may omit the waypoint type.
Following the waypoint-type are (optionally) three space sep-
arated zeros, a proximity radius (in integer meters), and a
comment. Comments follow the same space/underscore rules as
label names, and are limited to 80 characters.
You can create any number of way-*.txt files and chose
between them from the Preferences menu.
There is no need to create the way.txt file yourself, you can
add the waypoints with GpsDrive using the "x" key. See the
Help menu.
---man-page---
Hamish
More information about the GPSdrive
mailing list