Changeset 33047 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/SimplifyWay.java
- Timestamp:
- 2016-10-30T21:24:41+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/SimplifyWay.java
r32556 r33047 7 7 import org.openstreetmap.josm.data.osm.Node; 8 8 import org.openstreetmap.josm.data.osm.Way; 9 import org.openstreetmap.josm.data.projection.Ellipsoid; 9 10 10 11 /** … … 34 35 } 35 36 36 /* 37 /** 37 38 * Takes an interval [from,to] and adds nodes from (from,to) to ns. 38 39 * (from and to are indices of wnew.nodes.) … … 45 46 for (int i = from + 1; i < to; i++) { 46 47 Node n = wnew.getNode(i); 47 double xte = Math.abs(E ARTH_RAD48 double xte = Math.abs(Ellipsoid.WGS84.a 48 49 * xtd(fromN.getCoor().lat() * Math.PI / 180, fromN.getCoor().lon() * Math.PI / 180, toN.getCoor().lat() * Math.PI 49 50 / 180, toN.getCoor().lon() * Math.PI / 180, n.getCoor().lat() * Math.PI / 180, n.getCoor().lon() * Math.PI … … 61 62 } 62 63 } 63 64 public static double EARTH_RAD = 6378137.0;65 64 66 65 /* From Aviaton Formulary v1.3
Note:
See TracChangeset
for help on using the changeset viewer.