Changeset 34753 in osm for applications/editors/josm/plugins/gpsblam/src
- Timestamp:
- 2018-11-30T00:13:59+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.