Changeset 16160 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-06-26T21:58:58+02:00 (15 years ago)
Author:
jttt
Message:

Use getter for Node.coor and Node.eastNort

Location:
applications/editors/josm/plugins/cadastre-fr
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java

    r15961 r16160  
    191191        for (Node n : nodes) {
    192192            if (!n.deleted && !n.incomplete) {
    193                 double dist = n.eastNorth.distance(nodeToAdd.eastNorth);
     193                double dist = n.getEastNorth().distance(nodeToAdd.getEastNorth());
    194194                if (dist < epsilon) {
    195195                    return n;
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/SimplifyWay.java

    r14121 r16160  
    8383            Node n = wnew.nodes.get(i);
    8484            double xte = Math.abs(EARTH_RAD
    85                     * xtd(fromN.coor.lat() * Math.PI / 180, fromN.coor.lon() * Math.PI / 180, toN.coor.lat() * Math.PI
    86                             / 180, toN.coor.lon() * Math.PI / 180, n.coor.lat() * Math.PI / 180, n.coor.lon() * Math.PI
     85                    * xtd(fromN.getCoor().lat() * Math.PI / 180, fromN.getCoor().lon() * Math.PI / 180, toN.getCoor().lat() * Math.PI
     86                            / 180, toN.getCoor().lon() * Math.PI / 180, n.getCoor().lat() * Math.PI / 180, n.getCoor().lon() * Math.PI
    8787                            / 180));
    8888            if (xte > xtemax) {
Note: See TracChangeset for help on using the changeset viewer.