Ignore:
Timestamp:
2022-06-13T19:51:10+02:00 (3 years ago)
Author:
Don-vip
Message:

see #22104 - fix deprecation warnings

Location:
applications/editors/josm/plugins/terracer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/build.xml

    r35827 r35975  
    22<project name="terracer" default="dist" basedir=".">
    33    <property name="commit.message" value="applied #j5760 (patch by robome) - Order of housenumbers not correct"/>
    4     <property name="plugin.main.version" value="18207"/>
     4    <property name="plugin.main.version" value="18464"/>
    55    <property name="plugin.author" value="Matt Amos"/>
    66    <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  
    3232import org.openstreetmap.josm.command.SequenceCommand;
    3333import org.openstreetmap.josm.data.UndoRedoHandler;
     34import org.openstreetmap.josm.data.coor.ILatLon;
     35import org.openstreetmap.josm.data.coor.LatLon;
    3436import org.openstreetmap.josm.data.osm.DataSet;
    3537import org.openstreetmap.josm.data.osm.Node;
     
    217219            // Don't open the dialog
    218220            try {
    219                 terraceBuilding(outline, init, street, associatedStreet, 0, null, null, 0, 
     221                terraceBuilding(outline, init, street, associatedStreet, 0, null, null, 0,
    220222                        housenumbers, streetname, associatedStreet != null, false, "yes");
    221223            } catch (UserCancelException ex) {
     
    778780    private Node interpolateNode(Node a, Node b, double f) {
    779781        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))
    781784            return a;
    782         if (n.getCoor().equalsEpsilon(b.getCoor()))
     785        if (latLon.equalsEpsilon(b.getCoor(), ILatLon.MAX_SERVER_PRECISION))
    783786            return b;
    784787        return n;
Note: See TracChangeset for help on using the changeset viewer.