Changeset 28589 in osm for applications/editors/josm/plugins/measurement/src
- Timestamp:
- 2012-08-21T22:07:18+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r27957 r28589 133 133 lastNode = n; 134 134 } 135 } else if (p instanceof Way) {135 } else if (p instanceof Way) { 136 136 Way w = (Way)p; 137 137 Node lastN = null; 138 for (Node n: w.getNodes()) {139 if (lastN!= null) {138 for (Node n: w.getNodes()) { 139 if (lastN != null && lastN.getCoor() != null && n.getCoor() != null) { 140 140 length += lastN.getCoor().greatCircleDistance(n.getCoor()); 141 141 //http://local.wasp.uwa.edu.au/~pbourke/geometry/polyarea/
Note:
See TracChangeset
for help on using the changeset viewer.