- Timestamp:
- 2008-08-01T12:58:41+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r721 r743 720 720 for (WayPoint p : segment) { 721 721 Node n = new Node(p.latlon); 722 String timestr = p.getString("time"); 723 if(timestr != null) 724 { 725 timestr = timestr.replace("Z","+00:00"); 726 n.timestamp = timestr; 727 } 722 728 ds.nodes.add(n); 723 729 w.nodes.add(n); -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r683 r743 368 368 doneNodes.add(n); 369 369 } 370 trkseg.add(new WayPoint(n.coor)); 370 WayPoint wpt = new WayPoint(n.coor); 371 if(n.timestamp != null) 372 wpt.attr.put("time", n.timestamp); 373 trkseg.add(wpt); 371 374 } 372 375 } … … 374 377 if (n.incomplete || n.deleted || doneNodes.contains(n)) continue; 375 378 WayPoint wpt = new WayPoint(n.coor); 379 if(n.timestamp != null) 380 wpt.attr.put("time", n.timestamp); 376 381 if (n.keys != null && n.keys.containsKey("name")) { 377 382 wpt.attr.put("name", n.keys.get("name"));
Note:
See TracChangeset
for help on using the changeset viewer.