Ignore:
Timestamp:
2013-03-21T21:30:58+01:00 (12 years ago)
Author:
zverik
Message:

iodb updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetTools.java

    r29380 r29382  
    176176        Projection proj = Main.getProjection();
    177177        EastNorth pos = proj.latlon2eastNorth(offset.getPosition());
    178         LatLon correctedCenterLL = proj.eastNorth2latlon(pos.add(dx, dy));
     178        LatLon correctedCenterLL = proj.eastNorth2latlon(pos.add(-dx, -dy));
    179179        double length = correctedCenterLL.greatCircleDistance(offset.getImageryPos());
    180180        double direction = length < 1e-2 ? 0.0 : correctedCenterLL.heading(offset.getImageryPos());
    181181        // todo: north vs south. Meanwhile, let's fix this dirty:
    182         direction = Math.PI - direction;
     182//        direction = Math.PI - direction;
    183183        if( direction < 0 )
    184184            direction += Math.PI * 2;
Note: See TracChangeset for help on using the changeset viewer.