Changeset 554 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2008-02-22T18:31:49+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxReader.java
r553 r554 227 227 break; 228 228 case wpt: 229 if (qName.equals("ele") || qName.equals(" time") || qName.equals("desc")229 if (qName.equals("ele") || qName.equals("desc") 230 230 || qName.equals("magvar") || qName.equals("geoidheight") 231 || qName.equals("name") || qName.equals("time")232 || qName.equals(" sym") || qName.equals("cmt") || qName.equals("type")) {231 || qName.equals("name") || qName.equals("sym") 232 || qName.equals("cmt") || qName.equals("type")) { 233 233 currentWayPoint.attr.put(qName, accumulator.toString()); 234 } else if (qName.equals("time")) { 235 currentWayPoint.attr.put(qName, accumulator.toString()); 236 currentWayPoint.setTime(); 234 237 } else if (qName.equals("rtept")) { 235 238 currentState = states.pop(); 236 currentWayPoint.setTime();237 239 currentRoute.routePoints.add(currentWayPoint); 238 240 } else if (qName.equals("trkpt")) { 239 241 currentState = states.pop(); 240 currentWayPoint.setTime();241 242 currentTrackSeg.add(currentWayPoint); 242 243 if (Main.pref.getBoolean("marker.namedtrackpoints") && … … 248 249 } else if (qName.equals("wpt")) { 249 250 currentState = states.pop(); 250 currentWayPoint.setTime();251 251 currentData.waypoints.add(currentWayPoint); 252 252 }
Note:
See TracChangeset
for help on using the changeset viewer.