Changeset 34737 in osm for applications/editors/josm/plugins/editgpx/src/org/openstreetmap
- Timestamp:
- 2018-11-25T13:34:03+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r34505 r34737 131 131 * convert a DataSet to GPX 132 132 * 133 * @param booleananonTime If true set all time and date in GPX to 01/01/1970 00:00 ?134 * @return G PXData133 * @param anonTime If true set all time and date in GPX to 01/01/1970 00:00 ? 134 * @return GpxData 135 135 */ 136 136 private GpxData toGpxData(boolean anonTime) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java
r34505 r34737 107 107 /** 108 108 * create rectangle out of two given corners 109 * @param p1 first corner 110 * @param p2 second corner 111 * @return rectangle 109 112 */ 110 113 public Rectangle createRect(Point p1, Point p2) { … … 137 140 /** 138 141 * Draw a selection rectangle on screen. 142 * @param p1 first corner 143 * @param p2 second corner 139 144 */ 140 145 private void paintRect(Point p1, Point p2) { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java
r30737 r34737 71 71 * time of the oldest waypoint in the set of non-deleted waypoints 72 72 * in this data (in seconds since Epoch) 73 * @return time in seconds since Epoch 73 74 */ 74 75 public double minNonDeletedTime() { … … 80 81 try { 81 82 double t = track.minNonDeletedTime(); 82 if ( (!foundOne) || (t < minTime)) {83 if (!foundOne || t < minTime) { 83 84 minTime = t; 84 85 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java
r30737 r34737 5 5 import java.util.ArrayList; 6 6 import java.util.Collection; 7 import java.util.Date;8 7 import java.util.HashMap; 9 8 import java.util.List; … … 42 41 43 42 final DateFormat iso8601 = 44 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); 43 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); 45 44 final TimeZone utc = TimeZone.getTimeZone("UTC"); 46 45 iso8601.setTimeZone(utc); … … 54 53 for (WayPoint w : points) { 55 54 double t = w.time - minTime; 56 w.attr.put("time", iso8601.format( 57 new Date((long)(t * 1000)))); 58 w.setTime(); 55 w.setTimeInMillis((long)(t * 1000)); 59 56 assert w.time == t; 60 57 if (w.attr.containsKey("name")) { … … 87 84 * time of the oldest waypoint in the set of non-deleted waypoints 88 85 * in this track (in seconds since Epoch) 86 * @return time in seconds since Epoch 89 87 */ 90 88 public double minNonDeletedTime() { … … 96 94 try { 97 95 double t = segment.minNonDeletedTime(); 98 if ( (!foundOne) || (t < minTime)) {96 if (!foundOne || t < minTime) { 99 97 minTime = t; 100 98 } -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrackSegment.java
r30737 r34737 46 46 * time of the oldest waypoint in the set of non-deleted waypoints 47 47 * in this segment (in seconds since Epoch) 48 * @return time in seconds since Epoch 48 49 */ 49 50 public double minNonDeletedTime() { -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java
r33782 r34737 36 36 /** 37 37 * returns this waypoint's time in seconds since Epoch 38 * @return time in seconds since Epoch 38 39 */ 39 40 public double getTime() {
Note:
See TracChangeset
for help on using the changeset viewer.