/**
* Parses a GPX file and prints out a data file with each trackpoints distance from the start of the
* track and its elevation, separated 0by a space.
+ *
+ * @author Erik Brakkee
*/
public class GpxPlotter {
File file = new File(aArgs[0]);
GpxParser parser = new GpxParser();
Track track = parser.parse(new FileInputStream(file));
+
+ TrackStatistics profile = new TrackStatistics(track);
+ profile.writeHeightProfileJpg(new FileOutputStream("x.jpg"), 600, 300);
List<Pair<Double,Double>> elevationProfile = computeElevationProfile(track);
printTrack(elevationProfile);