Page 1 of 2   1 2 > last >>
Bookmark this page: Add Tool to join tracks from My Tracks to Yahoo MyWeb Add Tool to join tracks from My Tracks to Google Bookmarks Add Tool to join tracks from My Tracks to Windows Live Add Tool to join tracks from My Tracks to Del.icio.us Digg Tool to join tracks from My Tracks! Add Tool to join tracks from My Tracks to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Hans-Georg Michna on September 2, 2010, 1:19 pm


To avoid having to handle large numbers of files, one file per
contiguous track, as they come from My Tracks, I've copied the
<trk>...</trk> elements together into one file. Works nicely,
but is still tedious manual work.

Any idea on how to do this automatically, short of writing a
program myself?

Hans-Georg

Posted by Gene E. Bloch on September 2, 2010, 1:58 pm


On Thu, 02 Sep 2010 19:19:23 +0200, Hans-Georg Michna wrote:

> To avoid having to handle large numbers of files, one file per
> contiguous track, as they come from My Tracks, I've copied the
> <trk>...</trk> elements together into one file. Works nicely,
> but is still tedious manual work.
>
> Any idea on how to do this automatically, short of writing a
> program myself?
>
> Hans-Georg

One thought: a batch file (if you're in Windows) that uses a foreach
loop to type each file into a destination file, using ">>" to append the
data instead of overwriting it.

If the <trk> elements are not alone in the file, use find to isolate
them. This won't work if the tracks occupy several lines.

That's still writing a program, but with luck it'll be short and sweet.

I used to have a version of awk in Windows, years ago. I bet that would
have worked well for this.

--
Gene E. Bloch (Stumbling Bloch)

Posted by Hans-Georg Michna on September 3, 2010, 9:09 am


On Thu, 2 Sep 2010 10:58:56 -0700, Gene E. Bloch wrote:

>On Thu, 02 Sep 2010 19:19:23 +0200, Hans-Georg Michna wrote:

>> To avoid having to handle large numbers of files, one file per
>> contiguous track, as they come from My Tracks, I've copied the
>> <trk>...</trk> elements together into one file. Works nicely,
>> but is still tedious manual work.
>>
>> Any idea on how to do this automatically, short of writing a
>> program myself?

>One thought: a batch file (if you're in Windows) that uses a foreach
>loop to type each file into a destination file, using ">>" to append the
>data instead of overwriting it.
>If the <trk> elements are not alone in the file, use find to isolate
>them. This won't work if the tracks occupy several lines.
>That's still writing a program, but with luck it'll be short and sweet.
>I used to have a version of awk in Windows, years ago. I bet that would
>have worked well for this.

Unfortunately it's not quite so simple. Each exported GPX file
from My Tracks contains only one <trk>...</trk> element, but it
is long and contains all of the actual trackpoints with their
data.

I see though that it would be fairly easy to write a script for
this purpose, probably in JavaScript. I'll write and publish it,
as soon as I find an hour to spare.

Hans-Georg

Posted by Stephen H. Fischer on September 3, 2010, 11:09 am


Hi,

ExpertGPS is a great tool for track work. The author was one of the main
persons starting the "GPX" file format and ExpertGPS's native format is
"GPX".

http://expertgps.com/

It is $$$$ but you get topo maps and satellite imagery from the terra server
(Terra server may have had it's name changed.)

A free version is offered as EasyGPX, but I have not looked at it's features
for a long time.

http://www.easygps.com/default.asp

Also GPSBabel may do the job. (Free but perhaps a bit hard to use)

http://www.gpsbabel.org/news/20100620.html

SHF

> On Thu, 2 Sep 2010 10:58:56 -0700, Gene E. Bloch wrote:
>>On Thu, 02 Sep 2010 19:19:23 +0200, Hans-Georg Michna wrote:
>>> To avoid having to handle large numbers of files, one file per
>>> contiguous track, as they come from My Tracks, I've copied the
>>> <trk>...</trk> elements together into one file. Works nicely,
>>> but is still tedious manual work.
>>> Any idea on how to do this automatically, short of writing a
>>> program myself?
>>One thought: a batch file (if you're in Windows) that uses a foreach
>>loop to type each file into a destination file, using ">>" to append the
>>data instead of overwriting it.
>>If the <trk> elements are not alone in the file, use find to isolate
>>them. This won't work if the tracks occupy several lines.
>>That's still writing a program, but with luck it'll be short and sweet.
>>I used to have a version of awk in Windows, years ago. I bet that would
>>have worked well for this.

Wait for it... ANY mention of "AWK" is stomped on by the P-Counter only
enabled brains of the perl users.
They just don't get it.

Send me a E-main at mailto:a_nani_mouse@mindspring.com and I can supply all
of AWK including source and DOC's to you.

> Unfortunately it's not quite so simple. Each exported GPX file
> from My Tracks contains only one <trk>...</trk> element, but it
> is long and contains all of the actual trackpoints with their
> data.
> I see though that it would be fairly easy to write a script for
> this purpose, probably in JavaScript. I'll write and publish it,
> as soon as I find an hour to spare.
> Hans-Georg


Posted by Gene E. Bloch on September 5, 2010, 12:03 am


On Fri, 03 Sep 2010 15:09:42 +0200, Hans-Georg Michna wrote:

> On Thu, 2 Sep 2010 10:58:56 -0700, Gene E. Bloch wrote:
>
>>On Thu, 02 Sep 2010 19:19:23 +0200, Hans-Georg Michna wrote:
>
>>> To avoid having to handle large numbers of files, one file per
>>> contiguous track, as they come from My Tracks, I've copied the
>>> <trk>...</trk> elements together into one file. Works nicely,
>>> but is still tedious manual work.
>>>
>>> Any idea on how to do this automatically, short of writing a
>>> program myself?
>
>>One thought: a batch file (if you're in Windows) that uses a foreach
>>loop to type each file into a destination file, using ">>" to append the
>>data instead of overwriting it.
>>If the <trk> elements are not alone in the file, use find to isolate
>>them. This won't work if the tracks occupy several lines.
>>That's still writing a program, but with luck it'll be short and sweet.
>>I used to have a version of awk in Windows, years ago. I bet that would
>>have worked well for this.
>
> Unfortunately it's not quite so simple. Each exported GPX file
> from My Tracks contains only one <trk>...</trk> element, but it
> is long and contains all of the actual trackpoints with their
> data.

I don't know the formats here (that's surely obvious), but I still think
awk would work. I'm probably wrong, but since I'm not aware of any awk
implementation in Windows these days, I'm safe from discovery...

But see below.

> I see though that it would be fairly easy to write a script for
> this purpose, probably in JavaScript. I'll write and publish it,
> as soon as I find an hour to spare.
>
> Hans-Georg

Looks like you'll be having some fun soon :-)

Meantime, I got curious and looked here:
http://en.wikipedia.org/wiki/AWK#AWK_versions_and_implementations

There's a comment that Perl is inspired by awk, and mention of a program
tawk that runs under Windows, inter alia.

--
Gene E. Bloch (Stumbling Bloch)

Page 1 of 2   1 2 > last >>