Changeset 29854 in osm for applications/editors/josm/plugins/tracer
- Timestamp:
- 2013-08-21T03:47:16+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/tracer
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer/build.xml
r29771 r29854 4 4 <property name="commit.message" value="adapt to latest josm (getNodePairs changed)"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="6 082"/>6 <property name="plugin.main.version" value="6162"/> 7 7 8 8 <property name="plugin.author" value="Jan Bilak, Petr Dlouhý"/> -
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java
r23191 r29854 124 124 throws IllegalStateException, IndexOutOfBoundsException { 125 125 126 List<Command> cmds = new LinkedList<Command>();127 128 126 LatLon ll = node.getCoor(); 129 127 BBox bbox = new BBox( … … 191 189 System.out.println(way.getNodes().get(i) + "-----" + way.getNodes().get((i + 1) % way.getNodesCount())); 192 190 double minDistanceSq = MIN_DISTANCE_SQ; 193 double maxAngle = MAX_ANGLE; 191 //double maxAngle = MAX_ANGLE; 194 192 List<Node> nodes = Main.main.getCurrentDataSet().searchNodes(new BBox( 195 193 Math.min(n1.getX(), n2.getX()) - minDistanceSq, … … 208 206 System.out.println("Angle: " + angle + " distance: " + dist + " Node: " + nod); 209 207 if (!n1.equalsEpsilon(nn) && !n2.equalsEpsilon(nn) && dist < minDistanceSq){ // && Math.abs(angle) < maxAngle) { 210 maxAngle = angle; 208 //maxAngle = angle; 211 209 nearestNode = nod; 212 210 }
Note:
See TracChangeset
for help on using the changeset viewer.