Changeset 13764 in osm for applications/editors/josm/plugins/tcxplugin
- Timestamp:
- 2009-02-16T22:42:05+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tcxplugin/src/org/openstreetmap/josm/io/TcxReader.java
r13500 r13764 103 103 WayPoint waypt = new WayPoint(new LatLon(p.getLatitudeDegrees(), 104 104 p.getLongitudeDegrees())); 105 // If WayPoint handled elevation data, we could get it from 106 // tp.getAltitudeMeters(). 105 Double altitudeMeters = tp.getAltitudeMeters(); 106 if (altitudeMeters != null) { 107 waypt.attr.put("ele", altitudeMeters.toString()); 108 } 107 109 108 110 XMLGregorianCalendar time = tp.getTime(); 109 111 110 112 if (time != null) { 113 waypt.attr.put("time", time.toString()); 111 114 waypt.time = .001 * time.toGregorianCalendar().getTimeInMillis(); 112 115 } … … 141 144 waypt.attr.put("name", 142 145 startTime 143 146 .toString()); 144 147 startTime = null; 145 148 }
Note:
See TracChangeset
for help on using the changeset viewer.