Changeset 35975 in osm for applications/editors/josm/plugins/terracer
- Timestamp:
- 2022-06-13T19:51:10+02:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/terracer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/build.xml
r35827 r35975 2 2 <project name="terracer" default="dist" basedir="."> 3 3 <property name="commit.message" value="applied #j5760 (patch by robome) - Order of housenumbers not correct"/> 4 <property name="plugin.main.version" value="18 207"/>4 <property name="plugin.main.version" value="18464"/> 5 5 <property name="plugin.author" value="Matt Amos"/> 6 6 <property name="plugin.class" value="org.openstreetmap.josm.plugins.terracer.TerracerPlugin"/> -
applications/editors/josm/plugins/terracer/src/org/openstreetmap/josm/plugins/terracer/TerracerAction.java
r35579 r35975 32 32 import org.openstreetmap.josm.command.SequenceCommand; 33 33 import org.openstreetmap.josm.data.UndoRedoHandler; 34 import org.openstreetmap.josm.data.coor.ILatLon; 35 import org.openstreetmap.josm.data.coor.LatLon; 34 36 import org.openstreetmap.josm.data.osm.DataSet; 35 37 import org.openstreetmap.josm.data.osm.Node; … … 217 219 // Don't open the dialog 218 220 try { 219 terraceBuilding(outline, init, street, associatedStreet, 0, null, null, 0, 221 terraceBuilding(outline, init, street, associatedStreet, 0, null, null, 0, 220 222 housenumbers, streetname, associatedStreet != null, false, "yes"); 221 223 } catch (UserCancelException ex) { … … 778 780 private Node interpolateNode(Node a, Node b, double f) { 779 781 Node n = new Node(a.getEastNorth().interpolate(b.getEastNorth(), f)); 780 if (n.getCoor().equalsEpsilon(a.getCoor())) 782 LatLon latLon = n.getCoor(); 783 if (latLon.equalsEpsilon(a.getCoor(), ILatLon.MAX_SERVER_PRECISION)) 781 784 return a; 782 if ( n.getCoor().equalsEpsilon(b.getCoor()))785 if (latLon.equalsEpsilon(b.getCoor(), ILatLon.MAX_SERVER_PRECISION)) 783 786 return b; 784 787 return n;
Note:
See TracChangeset
for help on using the changeset viewer.