X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=gps%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fgpx%2FGpxPlotter.java;h=232c70139c7ffb594d5c902121281e15a4567dfd;hb=279d1fb92acaa605d17a5bc0a45d2e4c06badd17;hp=f239cabf4a3b7aadc01807f000f0ea0caf45b3dd;hpb=baa270ebaadd342b74fd286abcca722338d22327;p=utils diff --git a/gps/src/main/java/org/wamblee/gpx/GpxPlotter.java b/gps/src/main/java/org/wamblee/gpx/GpxPlotter.java index f239cabf..232c7013 100644 --- a/gps/src/main/java/org/wamblee/gpx/GpxPlotter.java +++ b/gps/src/main/java/org/wamblee/gpx/GpxPlotter.java @@ -46,6 +46,8 @@ import org.wamblee.utils.JpegUtils; /** * 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 { @@ -53,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> elevationProfile = computeElevationProfile(track); printTrack(elevationProfile);