Changeset 17377 in osm for applications/editors/josm/plugins/measurement
- Timestamp:
- 2009-08-30T18:16:10+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/measurement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/build.xml
r16801 r17377 25 25 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 26 26 <attribute name="Plugin-Description" value="Provide a measurement dialog and a layer to measure length and angle of segments, area surrounded by a (simple) closed way and create measurement paths (which also can be imported from a gps layer)."/> 27 <attribute name="Plugin-Mainversion" value=" 1893"/>27 <attribute name="Plugin-Mainversion" value="2012"/> 28 28 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 29 29 </manifest> -
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r16317 r17377 126 126 Way w = (Way)p; 127 127 Node lastN = null; 128 for(Node n: w. nodes){128 for(Node n: w.getNodes()){ 129 129 if(lastN != null){ 130 130 length += MeasurementLayer.calcDistance(lastN.getCoor(), n.getCoor()); … … 135 135 lastN = n; 136 136 } 137 if (lastN != null && lastN == w. nodes.iterator().next()){137 if (lastN != null && lastN == w.getNodes().iterator().next()){ 138 138 area = Math.abs(area / 2); 139 139 }else{
Note:
See TracChangeset
for help on using the changeset viewer.