Changeset 23191 in osm for applications/editors/josm/plugins/tracer/src/org
- Timestamp:
- 2010-09-15T18:56:19+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java
r21852 r23191 40 40 LinkedList<Command> cmds = new LinkedList<Command>(); 41 41 Way newWay = new Way(way); 42 for (int i = 0; i < way.getNodesCount() - 1; i++) { 43 Node n = way.getNode(i); 42 for (int i = 0; i < way.getNodesCount() - 1; i++) { 43 Node n = way.getNode(i); 44 44 System.out.println("-------"); 45 45 System.out.println("Node: " + n); … … 93 93 private static List<Command> mergeNodes(Node n1, Node n2, Way way){ 94 94 List<Command> cmds = new LinkedList<Command>(); 95 cmds.add(new MoveCommand(n2, 96 (n1.getEastNorth().getX() - n2.getEastNorth().getX())/2, 95 cmds.add(new MoveCommand(n2, 96 (n1.getEastNorth().getX() - n2.getEastNorth().getX())/2, 97 97 (n1.getEastNorth().getY() - n2.getEastNorth().getY())/2 98 98 )); … … 123 123 private static void tryConnectNodeToAnyWay(Node node, Map<Way, Way> m) 124 124 throws IllegalStateException, IndexOutOfBoundsException { 125 125 126 126 List<Command> cmds = new LinkedList<Command>(); 127 127 -
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/TracerServer.java
r19881 r23191 16 16 17 17 static final String URL = "http://localhost:5050/"; 18 18 19 19 public TracerServer() { 20 20 21 21 } 22 22 23 23 /** 24 24 * Call Trace server.
Note:
See TracChangeset
for help on using the changeset viewer.