Changeset 12167 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2017-05-15T17:13:11+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer/gpx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackAction.java
r12131 r12167 71 71 for (GpxTrackSegment segment : trk.getSegments()) { 72 72 for (WayPoint p : segment.getWayPoints()) { 73 latsum += p. getCoor().lat();73 latsum += p.lat(); 74 74 latcnt++; 75 75 } -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r12157 r12167 478 478 } 479 479 for (WayPoint trkPnt : segment) { 480 LatLon c = trkPnt.getCoor(); 481 if (Double.isNaN(c.lat()) || Double.isNaN(c.lon())) { 480 if (!trkPnt.isLatLonKnown()) { 482 481 continue; 483 482 } 484 483 if (oldWp != null && trkPnt.time > oldWp.time) { 485 double vel = c.greatCircleDistance(oldWp.getCoor())484 double vel = trkPnt.getCoor().greatCircleDistance(oldWp.getCoor()) 486 485 / (trkPnt.time - oldWp.time); 487 486 velocities.add(vel); … … 624 623 Point old = null; 625 624 for (WayPoint trkPnt : visibleSegments) { 626 LatLon c = trkPnt.getCoor(); 627 if (Double.isNaN(c.lat()) || Double.isNaN(c.lon())) { 625 if (!trkPnt.isLatLonKnown()) { 628 626 continue; 629 627 } … … 653 651 Point oldA = null; // last arrow painted 654 652 for (WayPoint trkPnt : visibleSegments) { 655 LatLon c = trkPnt.getCoor(); 656 if (Double.isNaN(c.lat()) || Double.isNaN(c.lon())) { 653 if (!trkPnt.isLatLonKnown()) { 657 654 continue; 658 655 }
Note:
See TracChangeset
for help on using the changeset viewer.