Search the web
Sign In
New User? Sign Up
gpsxml · GPX Developers Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Why not multiple <trkseg>s in one <trk>?   Message List  
Reply | Forward Message #1804 of 2039 |
I'm developing a geotagging app of sorts that can read GPX files. I've noticed a
couple GPX
exporters (gpsbabel and Garmin's "Bobcat") that will take a tracklog like
"ACTIVE LOG" and
split it into literally hundreds of <trk>s, each containing only one <trkseg>:

<trk><name>ACTIVE LOG</name><trkseg>...</trkseg></trk>
<trk><name>ACTIVE LOG 001</name><trkseg>...</trkseg></trk>
...
<trk><name>ACTIVE LOG 145</name><trkseg>...</trkseg></trk>
<trk><name>ACTIVE LOG 146</name><trkseg>...</trkseg></trk>
...ad infinitum

By my understanding of the format, which is confirmed by other utilities such as
G7ToWin,
a new track log should NOT be created for every single little time the GPS unit
loses signal
or whatnot, especially if the GPS itself does not call it a new track.

Is this a correct understanding? Are there reasons these programs go out of
their way to
turn one tracklog into hundreds named in sequence?

I'm tempted to start a letter writing campaign so that sanity (IMO) may one day
again
prevail, but I'm starting to worry that this strange "feature" is more
widespread than I
imagined, perhaps for some practical reason, and it would be a losing battle.
Has anyone
noticed the general ratio of programs that keep something like Garmin's "ACTIVE
LOG" as
one <trk> with many <trksegs>, versus those that go out of their way to make
sure
there's only one <trkseg> per <trk>?

thanks,
-natevw

ps - sorry for the "get off my yard, you whippersnappers" tone; I was completely
befuddled when I noticed how gpsbabel burst my tidy little GPX world with this
newfangled
idea, and I still have not gotten back into my rocker.




Tue Mar 25, 2008 4:13 am

natevw
Offline Offline
Send Email Send Email

Forward
Message #1804 of 2039 |
Expand Messages Author Sort by Date

I'm developing a geotagging app of sorts that can read GPX files. I've noticed a couple GPX exporters (gpsbabel and Garmin's "Bobcat") that will take a...
natevw
Offline Send Email
Mar 25, 2008
6:14 am

... "ACTIVE LOG" and ... <trkseg>: Can't speak for Bobcat, but I can speak pretty authoritatively for GPSBabel. Disclosure: I am the Chief Babel Head. ... day...
Robert Lipe
robertlipe
Offline Send Email
Mar 25, 2008
7:00 am

... So I got interested and went back to the GPX documentation: <http://www.topografix.com/gpx/1/1/#type_trksegType> "A Track Segment holds a list of Track...
Simon Slavin
simonslavin
Offline Send Email
Mar 25, 2008
12:23 pm

Hello, ... Read Martin's email again - every spatial format contains the concept of a multi polyline - a single object that contains multiple lines. There are...
Dan Foster
topografix
Offline Send Email
Mar 25, 2008
1:14 pm

... As far as how it maps to other GPS related formats, I will defer to your experience there. But as other posters have mentioned, the concept of one item...
natevw
Offline Send Email
Mar 25, 2008
5:35 pm

natevw, I agree with you: A trkseg should not be turned into a new track resulting in tons of tracks. I also think that trkseg is a very reasonable construct,...
mhoeghgmailcom
Offline Send Email
Mar 25, 2008
8:05 am

... I agree. That would seem to be exactly the purpose of having trksegs in the GPX format. Segments could be used for many different purposes, not only GPS...
Anthony Cartmell
fonant
Offline Send Email
Mar 25, 2008
10:46 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help