Re: [Gpsbabel-code] PATCH short names in gpx writer.
Brought to you by:
robertl
From: tsteven4 <tst...@gm...> - 2012-11-23 14:26:59
|
I forgot to send this. The original patch (mkshort.diff) was never applied. This patch keeps the wpt, rtept, and trkpt namespaces all independent. In the case that one was copied from the other then renames will match between the two. With the original patch they would have conflicted and thus been forced not to match. On 9/15/2012 5:04 AM, tsteven4 wrote: > The patch I sent makes the gpx:wpt, gpx:rtept,gpx:trkpt names all > unique. We may not want to enforce any uniqueness requirement between > the set of gpx:wpt names and the set of gpx:rtept names and the set of > gpx:trkpt names. Thoughts? Assuming this is true I am working on an > update to do this. > > On 9/14/2012 6:21 PM, tsteven4 wrote: >> This change is motivated by the recent gpsbabel-misc thread "short >> names" started by R....@ex.... >> >> This is a change to the gpx write to support shortnames for gpx:rtept >> and gpx:trkpt. It also changes the shortname handling for gpx:waypt >> to use the common routine mkshort_from_wpt. I note that the fields >> searched and the search order used in mkshort_from_wpt is a bit >> different than what gpx.c has done in the past for gpx:wpt, but I >> think consistent handling is the correct thing to do. >> > |