Serial port and GPS

Gpsx Class

Creates a Gpx file with a path description

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


[Visual Basic]
Public Class Gpsx
    Implements IDisposable
public class Gpsx : IDisposable

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.


Used for creating a gpx file describing a path from coordinates passed to the subsequent calls to the method addLocation().


 using serial;

 public static void createGpx() {
   Gpsx gpsx;
   gpsx = new Gpsx();"file.gpx");
   gpsx.addLocation(12.1234, 49.2345, 401.5);
   gpsx.addLocation(12.1244, 49.2355, 402.5);
   gpsx.addLocation(12.1254, 49.2365, 403.5);
The call to this method would create the following gpx file in file.gpx:
<?xml version="1.0" encoding="utf-8"?>
<gpx xmlns="">
  <wpt lat="12.1234" lon="49.2345">
  <wpt lat="12.1244" lon="49.2355">
  <wpt lat="12.1254" lon="49.2365">
  <bounds minlat="12.1234" minlon="49.2345"
             maxlat="12.1254" maxlon="49.2365" >


Namespace: serial

Assembly: gpsx (in gpsx.exe)

See Also

Gpsx Members | serial Namespace