Changeset 18417 in osm for applications/editors/josm/plugins/waydownloader
- Timestamp:
- 2009-11-02T08:58:53+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/waydownloader
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waydownloader/build.xml
r18300 r18417 91 91 <attribute name="Plugin-Description" value="Easy downloading along a long set of interconnected ways"/> 92 92 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WayDownloaderPlugin"/> 93 <attribute name="Plugin-Mainversion" value="23 27"/>93 <attribute name="Plugin-Mainversion" value="2381"/> 94 94 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 95 95 </manifest> -
applications/editors/josm/plugins/waydownloader/src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java
r18300 r18417 102 102 DownloadOsmTask downloadTask = new DownloadOsmTask(); 103 103 final PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor(); 104 final Future<?> future = downloadTask.download( 104 final Future<?> future = downloadTask.download( 105 105 false /* no new layer */, 106 106 new Bounds( 107 selectedNode.getCoor().lat()- latbuffer, 108 selectedNode.getCoor().lon()- lonbuffer, 109 selectedNode.getCoor().lat()+ latbuffer, 107 selectedNode.getCoor().lat()- latbuffer, 108 selectedNode.getCoor().lon()- lonbuffer, 109 selectedNode.getCoor().lat()+ latbuffer, 110 110 selectedNode.getCoor().lon()+ lonbuffer 111 ), 111 ), 112 112 monitor 113 113 ); … … 200 200 /** See if there's another node at the same coordinates. If so return it. Otherwise null */ 201 201 private Node duplicateNode() { 202 for (Node onNode:Main.main.getCurrentDataSet(). nodes) {202 for (Node onNode:Main.main.getCurrentDataSet().getNodes()) { 203 203 if (!onNode.equals(this.selectedNode) 204 204 && !onNode.incomplete … … 223 223 224 224 //loop through every way 225 for (Way onWay:Main.main.getCurrentDataSet(). ways) {225 for (Way onWay:Main.main.getCurrentDataSet().getWays()) { 226 226 if (onWay.getNodesCount() >= 2) { 227 227 if (onWay.isFirstLastNode(selectedNode)) {
Note:
See TracChangeset
for help on using the changeset viewer.