Changeset 16294 in osm for applications/editors/josm/plugins/measurement
- Timestamp:
- 2009-07-03T23:35:00+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/measurement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/build.xml
r15953 r16294 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="1 640"/>27 <attribute name="Plugin-Mainversion" value="1725"/> 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/MeasurementLayer.java
r15953 r16294 75 75 Point l = null; 76 76 for(WayPoint p:points){ 77 LatLon c = p.latlon; 78 Point pnt = Main.map.mapView.getPoint(Main.proj.latlon2eastNorth(c)); 77 Point pnt = Main.map.mapView.getPoint(p.getCoor()); 79 78 if (l != null){ 80 79 g.drawLine(l.x, l.y, pnt.x, pnt.y); … … 196 195 197 196 public static double calcDistance(WayPoint p1, WayPoint p2){ 198 return calcDistance(p1. latlon, p2.latlon);197 return calcDistance(p1.getCoor(), p2.getCoor()); 199 198 } 200 199 201 200 public static double angleBetween(WayPoint p1, WayPoint p2){ 202 return angleBetween(p1. latlon, p2.latlon);201 return angleBetween(p1.getCoor(), p2.getCoor()); 203 202 } 204 203
Note:
See TracChangeset
for help on using the changeset viewer.