Re: [Gpsbabel-misc] Real-Time with CSV to show only most current point
Brought to you by:
robertl
From: Pouliot, C. (DNR) <Chr...@st...> - 2011-12-21 15:36:30
|
I'm reading through the Real-time documentation: gpsbabel -T -i garmin -f usb: -o kml -F xxx.kml Will read the USB-connected Garmin and rewrite 'xxx.kml' atomically, suitable for a self-refreshing network link in Google Earth. I run this: gpsbabel -T -I nmea -f com1 -o kml -F d:\gistemp\test.kml When running this from a command prompt it appends to the KML file. Shouldn't it be overwriting the KML with only the most current point? Also, If doing NMEA real-time to a KML file, does the KML output contain all NMEA information by default? I see that there is a table in the KML with a few things - Lat, Long, Alt, Speed, Heading, Time. Or is the only way to get all NMEA information by setting my output to be NMEA format? Chris From: Pouliot, Christopher (DNR) [mailto:Chr...@st...] Sent: Tuesday, December 20, 2011 1:32 PM To: Robert Lipe Cc: GPSBabel-misc Subject: Re: [Gpsbabel-misc] Real-Time with CSV to show only most current point Gpsbabel appears in my Task Manager processes as running and I don't think it is writing a file anywhere so I'm thinking that it is doing what it is suppose to do but I'm missing one step of the process to grab that info that's being piped. Thanks for the advice and I'll hold out to see if anyone else out there has any further clues. Chris From: rob...@gm... [mailto:rob...@gm...] On Behalf Of Robert Lipe Sent: Tuesday, December 20, 2011 1:11 PM 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 12:54 PM, Pouliot, Christopher (DNR) <Chr...@st...<mailto: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...> [mailto: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...<mailto: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. |