Ignore:
Timestamp:
2016-10-30T21:24:41+01:00 (8 years ago)
Author:
donvip
Message:

findbugs

File:
1 edited

Legend:

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

    r32556 r33047  
    77import org.openstreetmap.josm.data.osm.Node;
    88import org.openstreetmap.josm.data.osm.Way;
     9import org.openstreetmap.josm.data.projection.Ellipsoid;
    910
    1011/**
     
    3435    }
    3536
    36     /*
     37    /**
    3738     * Takes an interval [from,to] and adds nodes from (from,to) to ns.
    3839     * (from and to are indices of wnew.nodes.)
     
    4546        for (int i = from + 1; i < to; i++) {
    4647            Node n = wnew.getNode(i);
    47             double xte = Math.abs(EARTH_RAD
     48            double xte = Math.abs(Ellipsoid.WGS84.a
    4849                    * xtd(fromN.getCoor().lat() * Math.PI / 180, fromN.getCoor().lon() * Math.PI / 180, toN.getCoor().lat() * Math.PI
    4950                            / 180, toN.getCoor().lon() * Math.PI / 180, n.getCoor().lat() * Math.PI / 180, n.getCoor().lon() * Math.PI
     
    6162        }
    6263    }
    63 
    64     public static double EARTH_RAD = 6378137.0;
    6564
    6665    /* From Aviaton Formulary v1.3
Note: See TracChangeset for help on using the changeset viewer.