Ignore:
Timestamp:
2016-10-30T21:24:41+01:00 (10 years ago)
Author:
donvip
Message:

findbugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/RasterImageGeoreferencer.java

    r32556 r33047  
    168168  * around org1/dst1 anchor
    169169  * @param org1 first point at original coordinate system (the grabbed image)
    170   * @param org2 second point "
     170  * @param org2 second point
    171171  * @param dst1 first point at final destination coordinate system (the real east/north coordinate system)
    172   * @param dst2 second point "
     172  * @param dst2 second point
    173173  */
    174174 private void affineTransform(EastNorth org1, EastNorth org2, EastNorth dst1, EastNorth dst2) {
     
    188188     double dy = dst1.getY() - org1.getY();
    189189     wmsLayer.getImage(0).shear(dx, dy);
    190      org1 = org1.add(dx, dy); // org1=dst1 now
    191      org2 = org2.add(dx, dy);
    192      // rotate : org1(=dst1 now) is anchor for rotation and scale
     190     // rotate : dst1 is anchor for rotation and scale
    193191     wmsLayer.getImage(0).rotate(dst1, angle);
    194      org2 = org2.rotate(dst1, angle);
    195      // scale image from anchor org1(=dst1 now)
     192     // scale image from anchor dst1
    196193     wmsLayer.getImage(0).scale(dst1, proportion);
    197194 }
Note: See TracChangeset for help on using the changeset viewer.