Ignore:
Timestamp:
2015-12-31T16:37:24+01:00 (8 years ago)
Author:
Don-vip
Message:

fix javadoc errors/warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r8540 r9230  
    2727import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2828import org.openstreetmap.josm.data.osm.Way;
     29import org.openstreetmap.josm.data.projection.Ellipsoid;
    2930import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    3031import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
     
    217218     * @param to the upper index
    218219     * @param threshold the max error threshold
     220     * @param simplifiedNodes list that will contain resulting nodes
    219221     */
    220222    protected void buildSimplifiedNodeList(List<Node> wnew, int from, int to, double threshold, List<Node> simplifiedNodes) {
     
    228230        for (int i = from + 1; i < to; i++) {
    229231            Node n = wnew.get(i);
    230             double xte = Math.abs(EARTH_RAD
     232            double xte = Math.abs(Ellipsoid.WGS84.a
    231233                    * xtd(fromN.getCoor().lat() * Math.PI / 180, fromN.getCoor().lon() * Math.PI / 180, toN.getCoor().lat() * Math.PI
    232234                            / 180, toN.getCoor().lon() * Math.PI / 180, n.getCoor().lat() * Math.PI / 180, n.getCoor().lon() * Math.PI
     
    253255    }
    254256
    255     public static final double EARTH_RAD = 6378137.0;
    256 
    257257    /* From Aviaton Formulary v1.3
    258258     * http://williams.best.vwh.net/avform.htm
Note: See TracChangeset for help on using the changeset viewer.