Re: [Gpsbabel-misc] Real-Time with CSV to show only most current point
Brought to you by:
robertl
From: Robert L. <rob...@gp...> - 2011-12-20 19:11:26
|
On Tue, Dec 20, 2011 at 12:54 PM, Pouliot, Christopher (DNR) < Chr...@st...> wrote: > Robert,**** > > ** ** > > I’m not sure how to do that. This is the command I’m sending to GPSBabel > from my C# application (It works when I have an output file specified):*** > * > > ** ** > > "-T -i nmea -f com1 -o csv -F -" > That's correct from our side. There's definitely code in xcsv.c to make this work, but it's worth disclaiming that this is probably not well exercised as it's not really what we do. > **** > > ** From what I’ve Googled I think I need to do a ReadToEnd on the Process > object that I’m using to run GPSBabel but that just returns a blank > string. Any hints? Or is there any example code out there? > I don't program in C#. Perhaps someone else out there can help you with that. Based solely on the name of the method, that's probably wrong; you don't want to read until the pipe is closed; you want to read individual lines as they become available. But that's better answered by someone that actually knows C#. RJL > ** ** > > Your help is greatly appreciated!**** > > ** ** > > Chris**** > > ** ** > > *From:* rob...@gm... [mailto:rob...@gm...] *On Behalf Of *Robert > Lipe > *Sent:* Tuesday, December 20, 2011 11:31 AM > *To:* Pouliot, Christopher (DNR) > *Cc:* GPSBabel-misc > *Subject:* Re: [Gpsbabel-misc] Real-Time with CSV to show only most > current point**** > > ** ** > > ** ** > > On Tue, Dec 20, 2011 at 11:03 AM, Pouliot, Christopher (DNR) < > Chr...@st...> wrote:**** > > Hello all, **** > > **** > > I’m trying to do real-time tracking to a csv file. I’m able to get it to > work but what I’d like is for the most current location to overwrite the > previous so that my file contains only the most recent point (similar to > what is done with real-time to a KML file). Is there an option I can set > to do this?**** > > ** ** > > Not really. To get a similar effect, let GPSBabel output to a piple (-F > -) and let your program read from the pipe. **** > |