Serial port and GPS

GpsxTest Class

Command line test program for creating Gpsx files

For a list of all members of this type, see GpsxTest Members.

System.Object
   serial.GpsxTest

[Visual Basic]
Public Class GpsxTest
[C#]
public class GpsxTest

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Reads lines from stdin in format: latitute longitutde elevation each double in local fomat. Creates a GPX output describing the path from the input file.

Example

Assuming locales requiring a comma as decimal point:

C:\>type path.txt
12,1234 49,2345 401,5
12,1244 49,2355 402,5
12,1254 49,2365 403,5

C:\>gpsx.exe path.gpx < path.txt

C:\>type path.gpx
<?xml version="1.0" encoding="utf-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/0">
  <time>2008-12-12T11:00:35Z</time>
  <wpt lat="12.1234" lon="49.2345">
    <ele>401.5</ele>
    <time>2008-12-12T11:00:35Z</time>
    <name>0</name>
    <desc>0</desc>
    <sym>Dot</sym>
    <type>Dot</type>
  </wpt>
  <wpt lat="12.1244" lon="49.2355">
    <ele>402.5</ele>
    <time>2008-12-12T11:00:35Z</time>
    <name>1</name>
    <desc>1</desc>
    <sym>Dot</sym>
    <type>Dot</type>
  </wpt>
  <wpt lat="12.1254" lon="49.2365">
    <ele>403.5</ele>
    <time>2008-12-12T11:00:35Z</time>
    <name>2</name>
    <desc>2</desc>
    <sym>Dot</sym>
    <type>Dot</type>
  </wpt>
  <bounds minlat="12.1234" minlon="49.2345"
             maxlat="12.1254" maxlon="49.2365" />
</gpx>

Requirements

Namespace: serial

Assembly: gpsx (in gpsx.exe)

See Also

GpsxTest Members | serial Namespace | Gpsx