
50 4. Space & Time
public static void main(String[] args) throws IOException
{
String path = "D:/virtex/workspace/resources/gps/HD/",
nameIn = path + "demo.gpslog",
smallNMEA = path + "HDcastle.nmea";
reduceNMEA( nameIn, smallNMEA );
parseNMEA( smallNMEA, path + "HDcastle.csv");
parseNMEA( smallNMEA, path + "HDcastleBody.gpx");
}
The NMEA converter creates a HDcastleBody.gpx file. This file (and
later the map image of JavaGPS) will serve as a reference to compare the
results with JavaGPS.
XML and Java in a Nutshell
The GPS eXchange format GPX is a widely available XML format sup-
ported by most GPS devices and applications. You can find traces at
www.openstreetmap.org ...