Changeset 17367 in osm
- Timestamp:
- 2009-08-30T18:05:04+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/Create_grid_of_ways
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/Create_grid_of_ways/build.xml
r16620 r17367 26 26 <attribute name="Plugin-Description" value="Create a grid of ways."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/Create_grid_of_ways"/> 28 <attribute name="Plugin-Mainversion" value=" 1815"/>28 <attribute name="Plugin-Mainversion" value="2012"/> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
applications/editors/josm/plugins/Create_grid_of_ways/src/CreateGridOfWaysPlugin/CreateGridOfWaysAction.java
r16620 r17367 54 54 return; 55 55 } 56 nodesWay1.addAll(((Way)sel.toArray()[0]). nodes);57 nodesWay2.addAll(((Way)sel.toArray()[1]). nodes);56 nodesWay1.addAll(((Way)sel.toArray()[0]).getNodes()); 57 nodesWay2.addAll(((Way)sel.toArray()[1]).getNodes()); 58 58 Node nodeCommon = null; 59 59 for (Node n : nodesWay1) … … 83 83 continue; 84 84 if (n2.equals(nodeCommon)) { 85 w1[c1]. nodes.add(n1);85 w1[c1].addNode(n1); 86 86 continue; 87 87 } 88 88 if (n1.equals(nodeCommon)) { 89 w2[c2++]. nodes.add(n2);89 w2[c2++].addNode(n2); 90 90 continue; 91 91 } 92 92 Node nodeOfGrid = new Node(new LatLon(n2.getCoor().lat()+latDif,n2.getCoor().lon()+lonDif)); 93 93 cmds.add(new AddCommand(nodeOfGrid)); 94 w1[c1]. nodes.add(nodeOfGrid);95 w2[c2++]. nodes.add(nodeOfGrid);94 w1[c1].addNode(nodeOfGrid); 95 w2[c2++].addNode(nodeOfGrid); 96 96 } 97 97 if (!n1.equals(nodeCommon))
Note:
See TracChangeset
for help on using the changeset viewer.