Changeset 16162 in osm for applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java
- Timestamp:
- 2009-06-26T22:11:40+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java
r14121 r16162 55 55 boolean isInsideOneBoundingBox = false; 56 56 for (Bounds b : bounds) { 57 if (b.contains(node. coor)) {57 if (b.contains(node.getCoor())) { 58 58 isInsideOneBoundingBox = true; 59 59 break; … … 161 161 Node n = wnew.nodes.get(i); 162 162 double xte = Math.abs(EARTH_RAD 163 * xtd(fromN. coor.lat() * Math.PI / 180, fromN.coor.lon() * Math.PI / 180, toN.coor.lat() * Math.PI164 / 180, toN. coor.lon() * Math.PI / 180, n.coor.lat() * Math.PI / 180, n.coor.lon() * Math.PI163 * xtd(fromN.getCoor().lat() * Math.PI / 180, fromN.getCoor().lon() * Math.PI / 180, toN.getCoor().lat() * Math.PI 164 / 180, toN.getCoor().lon() * Math.PI / 180, n.getCoor().lat() * Math.PI / 180, n.getCoor().lon() * Math.PI 165 165 / 180)); 166 166 if (xte > xtemax) {
Note:
See TracChangeset
for help on using the changeset viewer.