(no commit message)
[utils] / gps / src / main / java / org / wamblee / gpx / GpxPlotter.java
index a14851013e18bffc44377236d608678cc78c9cf7..232c70139c7ffb594d5c902121281e15a4567dfd 100644 (file)
@@ -55,6 +55,9 @@ 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);