Changeset 35975 in osm for applications/editors/josm/plugins/tracer
- Timestamp:
- 2022-06-13T19:51:10+02:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/tracer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer/build.xml
r34563 r35975 4 4 <property name="commit.message" value="Tracer plugin can load at runtime"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 4153"/>6 <property name="plugin.main.version" value="18464"/> 7 7 <property name="plugin.canloadatruntime" value="true"/> 8 8 -
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java
r33813 r35975 19 19 import org.openstreetmap.josm.command.MoveCommand; 20 20 import org.openstreetmap.josm.command.SequenceCommand; 21 import org.openstreetmap.josm.data.coor.ILatLon; 21 22 import org.openstreetmap.josm.data.coor.LatLon; 22 23 import org.openstreetmap.josm.data.osm.BBox; … … 207 208 double angle = TracerGeometry.angleOfLines(n1, nn, nn, n2); 208 209 System.out.println("Angle: " + angle + " distance: " + dist + " Node: " + nod); 209 if (!n1.equalsEpsilon(nn) && !n2.equalsEpsilon(nn) && dist < minDistanceSq){ // && Math.abs(angle) < maxAngle) { 210 if (!n1.equalsEpsilon(nn, ILatLon.MAX_SERVER_PRECISION) 211 && !n2.equalsEpsilon(nn, ILatLon.MAX_SERVER_PRECISION) && dist < minDistanceSq) { // && Math.abs(angle) < maxAngle) { 210 212 //maxAngle = angle; 211 213 nearestNode = nod;
Note:
See TracChangeset
for help on using the changeset viewer.