Changeset 23650 in osm for applications/editors
- Timestamp:
- 2010-10-16T19:56:45+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java
r23189 r23650 137 137 */ 138 138 private GpxData toGpxData(boolean anonTime) { 139 return data.createGpxData( );139 return data.createGpxData(anonTime); 140 140 } 141 141 -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxData.java
r23189 r23650 43 43 } 44 44 45 public GpxData createGpxData( ) {45 public GpxData createGpxData(boolean anonTime) { 46 46 GpxData result = new GpxData(); 47 47 48 48 for (EditGpxTrack track: tracks) { 49 49 if (!track.isDeleted()) { 50 GpxTrack newTrack = track.createGpxTrack( );50 GpxTrack newTrack = track.createGpxTrack(anonTime); 51 51 if (!newTrack.getSegments().isEmpty()) { 52 52 result.tracks.add(newTrack); -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxTrack.java
r23189 r23650 32 32 } 33 33 34 public GpxTrack createGpxTrack( ) {34 public GpxTrack createGpxTrack(boolean anonTime) { 35 35 36 36 Collection<Collection<WayPoint>> wayPoints = new ArrayList<Collection<WayPoint>>(); … … 40 40 List<WayPoint> points = segment.getNonDeletedWaypoints(); 41 41 if (!points.isEmpty()) { 42 if (anonTime) { 43 // convert to anonymous time 44 for (WayPoint w : points) { 45 w.attr.put("time", "1970-00-00T00:00:00.000Z"); 46 w.setTime(); 47 } 48 } 42 49 wayPoints.add(points); 43 50 }
Note:
See TracChangeset
for help on using the changeset viewer.