[ gpsdrive ] Clear Track Button
Guenther Meyer
d.s.e at sordidmusic.com
Thu Sep 25 00:01:35 AKDT 2008
Am Mittwoch 24 September 2008 schrieb Hamish:
> > the problem is, that 'clear' and 'new' sound very similar.
>
> they seem clear enough to me, but ok.
> how about clear and next then?
>
>
> actually I think we can live without a "next" button if:
>
> unchecking "Save" should write to disk immediately, close the
> track_$DATE_000.sav file, and free that memory. Upon re-checking
> the Save box a new track_001.sav should begin.
>
sounds good, isn't this already done that way?
if not that's an easy thing to do.
> other issues/ideas:
> the Track/"Show" tickbox tooltip: unticking "show" doesn't /clear/ the
> data it clears the display. suggest rewording the tooltip. (if my
> understanding about what it does it correct.
>
right. this checkbox is just for the display.
> GPX: (cc'd to the GPX wish in the SF tracker)
>
> * the program should regularly (every few minutes?) save the GPX track
> data to the disk and flush it out of memory. Currently it seems it is only
> written to the disk on exit, which is a huge danger of losing the
> afternoon's OSM effort if the computer suffers a power loss (high
> probability on a mobile platform). Also reduces the memory load if the
> program is left running for days at a time.
>
if the 'save' checkbox is on, the track data is appended continously to a
track*.sav file. on crash or power loss, the data could be easily recovered
from the file (by simply loading it).
if you do this with gpx, you could end up with an open invalid xml file with
open tags. that's why the old track writing code us still in use.
but it's a good idea to do a regular gpx export in a customizable interval.
> * It is slightly dangerous to the data to simply overwrite rather than
> append the data to the GPX file. I have no good ideas for a solution, other
> than to follow the historic track_$DATE_000.sav, 001.sav, 002.sav, etc
> method or simply appending like track-ALL.sav does.
>
this "trackwriting on shutdown" was added, to have the last track available on
the next start, without having to bother for saving it.
the "backup" is done with the track*.sav files.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080925/87fb3ed1/attachment.bin>
More information about the GPSdrive
mailing list