Changeset 16294 in osm for applications/editors/josm/plugins/editgpx/src/org
- Timestamp:
- 2009-07-03T23:35:00+02:00 (15 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
r16290 r16294 34 34 import org.openstreetmap.josm.gui.layer.GpxLayer; 35 35 import org.openstreetmap.josm.gui.layer.Layer; 36 import org.openstreetmap.josm.tools.DateUtils; 36 37 import org.openstreetmap.josm.tools.ImageProvider; 37 38 … … 167 168 WayPoint wpt = new WayPoint(n.getCoor()); 168 169 if (anonTime) { 169 wpt.attr.put("time", "1970-01-01T00:00:00 ");170 wpt.attr.put("time", "1970-01-01T00:00:00Z"); 170 171 } else { 171 wpt.attr.put("time", WayPoint.GPXTIMEFMT.format(tstamp));172 wpt.attr.put("time", DateUtils.fromDate(tstamp)); 172 173 } 173 174 wpt.setTime(); … … 185 186 WayPoint wpt = new WayPoint(n.getCoor()); 186 187 if (anonTime) { 187 wpt.attr.put("time", "1970-01-01T00:00:00 ");188 wpt.attr.put("time", "1970-01-01T00:00:00Z"); 188 189 } else { 189 wpt.attr.put("time", WayPoint.GPXTIMEFMT.format(tstamp));190 wpt.attr.put("time", DateUtils.fromDate(tstamp)); 190 191 } 191 192 wpt.setTime(); -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java
r16290 r16294 68 68 //go through nodes and mark the ones in the selection rect as deleted 69 69 for (Node n: dataSet.nodes) { 70 Point p = Main.map.mapView.getPoint(n .getEastNorth());70 Point p = Main.map.mapView.getPoint(n); 71 71 if (r.contains(p)) { 72 72 n.deleted = true; //only set as deleted. this makes reset to beginning possible -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/GPXLayerImportAction.java
r14245 r16294 115 115 Way w = new Way(); 116 116 for (WayPoint p : segment) { 117 Node n = new Node(p. latlon);117 Node n = new Node(p.getCoor()); 118 118 String timestr = p.getString("time"); 119 119 if(timestr != null) 120 {121 timestr = timestr.replace("Z","+00:00");122 120 n.setTimestamp(DateUtils.fromString(timestr)); 123 }124 121 dataSet.nodes.add(n); 125 122 w.nodes.add(n); //TODO what to do with these while deletion
Note:
See TracChangeset
for help on using the changeset viewer.