Changeset 29382 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetTools.java
- Timestamp:
- 2013-03-21T21:30:58+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetTools.java
r29380 r29382 176 176 Projection proj = Main.getProjection(); 177 177 EastNorth pos = proj.latlon2eastNorth(offset.getPosition()); 178 LatLon correctedCenterLL = proj.eastNorth2latlon(pos.add( dx,dy));178 LatLon correctedCenterLL = proj.eastNorth2latlon(pos.add(-dx, -dy)); 179 179 double length = correctedCenterLL.greatCircleDistance(offset.getImageryPos()); 180 180 double direction = length < 1e-2 ? 0.0 : correctedCenterLL.heading(offset.getImageryPos()); 181 181 // todo: north vs south. Meanwhile, let's fix this dirty: 182 direction = Math.PI - direction;182 // direction = Math.PI - direction; 183 183 if( direction < 0 ) 184 184 direction += Math.PI * 2;
Note:
See TracChangeset
for help on using the changeset viewer.