Changeset 14965 in josm for trunk/src/org
- Timestamp:
- 2019-04-06T20:46:30+02:00 (7 years ago)
- File:
- 
      - 1 edited
 
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/src/org/openstreetmap/josm/actions/DownloadAlongWayAction.javar14962 r14965 59 59 60 60 // Convert OSM ways to Path2D 61 Path2D gpxPath = new Path2D.Double();61 Path2D alongPath = new Path2D.Double(); 62 62 for (Way way : selectedWays) { 63 63 boolean first = true; 64 64 for (Node p : way.getNodes()) { 65 65 if (first) { 66 gpxPath.moveTo(p.lon(), p.lat());66 alongPath.moveTo(p.lon(), p.lat()); 67 67 first = false; 68 68 } else { 69 gpxPath.lineTo(p.lon(), p.lat());69 alongPath.lineTo(p.lon(), p.lat()); 70 70 } 71 71 } 72 72 } 73 return createCalcTask( gpxPath, panel, tr("Download from OSM along selected ways"));73 return createCalcTask(alongPath, panel, tr("Download from OSM along selected ways")); 74 74 75 75 } 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
