Changeset 34753 in osm for applications/editors/josm
- Timestamp:
- 2018-11-30T00:13:59+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/gpsblam
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/gpsblam/build.xml
r34515 r34753 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="14 153"/>7 <property name="plugin.main.version" value="14456"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/gpsblam/src/org/openstreetmap/josm/plugins/gpsblam/GPSBlamInputData.java
r34515 r34753 54 54 CachedLatLon cll = new CachedLatLon(wayPoint.getCoor()); 55 55 Point p = MainApplication.getMap().mapView.getPoint(cll.getEastNorth(projection)); 56 double pX = p.x-p1.x, pY =p.y-p1.y; // vector from point clicked to waypoint56 double pX = p.x-p1.x, pY = p.y-p1.y; // vector from point clicked to waypoint 57 57 double pPar = pX*dirX + pY*dirY; // parallel component 58 58 double pPerp = pX*perpdirX + pY*perpdirY; // perpendicular component … … 80 80 this.add(cll); 81 81 Calendar day = new GregorianCalendar(); 82 day.setTimeInMillis( (long) (wayPoint.time*1000d));82 day.setTimeInMillis(wayPoint.getTimeInMillis()); 83 83 day.set(Calendar.HOUR_OF_DAY, 0); 84 84 day.set(Calendar.MINUTE, 0);
Note:
See TracChangeset
for help on using the changeset viewer.