Re: [Gpsbabel-code] patch: delbin, detect when waypoint count exceeds device limit
Brought to you by:
robertl
From: Robert L. <rob...@gp...> - 2009-09-03 19:54:28
|
On Thu, Sep 3, 2009 at 12:15 PM, Paul Cornett <pc...@bu...> wrote: > I've noticed some geocachers complaining that waypoints are silently > dropped if the device limit (currently 1000) is reached. While it is > in general not possible to detect this perfectly without consuming an > inordinate amount of time (re-reading all the waypoints and comparing > against what was sent), we can detect when it has _probably_ happened > and at least print out a warning. We'll get false negatives on this (I can send 999 waypoints 10 times and not trigger it) but I was thinking that we can indeed catch the case that we *know* will fail and head that off. I actually had something very much like this in a debugger last night. I did the capabilities groping during conversation startup instead of waypoint transfer so I could use it for tracks and routes, too. We also can't catch gpsbabel -i gpx -f 900.gpx -o delbin -F usb: -i gpx -f 900more.gpx -o delbin -F usb: with this approach, either. I kept dwelling on 'perfect' and maybe 'good enough' on this is exactly that. I've applied this. Thanx. I deduce you're a GSAK user watching that conversation... RJL |