git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
gps
/
src
/
main
/
java
/
org
/
wamblee
/
gpx
/
GpxPlotter.java
diff --git
a/gps/src/main/java/org/wamblee/gpx/GpxPlotter.java
b/gps/src/main/java/org/wamblee/gpx/GpxPlotter.java
index a14851013e18bffc44377236d608678cc78c9cf7..232c70139c7ffb594d5c902121281e15a4567dfd 100644
(file)
--- a/
gps/src/main/java/org/wamblee/gpx/GpxPlotter.java
+++ b/
gps/src/main/java/org/wamblee/gpx/GpxPlotter.java
@@
-55,6
+55,9
@@
public class GpxPlotter {
File file = new File(aArgs[0]);
GpxParser parser = new GpxParser();
Track track = parser.parse(new FileInputStream(file));
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);
List<Pair<Double,Double>> elevationProfile = computeElevationProfile(track);
printTrack(elevationProfile);