Ignore:
Timestamp:
2022-06-15T20:10:48+02:00 (2 years ago)
Author:
taylor.smock
Message:

See #22115: Extract methods from LatLon into ILatLon where they are generally applicable

This uses the extracted methods where possible, and removes unnecessary
Node#getCoor calls.

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

Legend:

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

    r35762 r35978  
    55    <property name="commit.message" value="trustosm: recompile for compatibility with JOSM r17896" />
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="17896"/>
     7    <property name="plugin.main.version" value="18494"/>
    88    <property name="plugin.author" value="Christoph Wagner" />
    99    <property name="plugin.class" value="org.openstreetmap.josm.plugins.trustosm.TrustOSMplugin" />
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/util/TrustAnalyzer.java

    r34565 r35978  
    9595        Node signedNode = TrustNode.generateNodeFromSigtext(signedPlaintext);
    9696        Node currentNode = (Node) trust.getOsmPrimitive();
    97         double dist = signedNode.getCoor().greatCircleDistance(currentNode.getCoor());
     97        double dist = signedNode.greatCircleDistance(currentNode);
    9898
    9999        /** is distance between signed Node and current Node inside tolerance? */
     
    157157            Node signedNode = signedSegment.get(i);
    158158            Node currentNode = nodes.get(i);
    159             double dist = signedNode.getCoor().greatCircleDistance(currentNode.getCoor());
     159            double dist = signedNode.greatCircleDistance(currentNode);
    160160            if (dist > tolerance) return false;
    161161        }
Note: See TracChangeset for help on using the changeset viewer.