Changeset 33047 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/RasterImageGeoreferencer.java
- Timestamp:
- 2016-10-30T21:24:41+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/RasterImageGeoreferencer.java
r32556 r33047 168 168 * around org1/dst1 anchor 169 169 * @param org1 first point at original coordinate system (the grabbed image) 170 * @param org2 second point "170 * @param org2 second point 171 171 * @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 173 173 */ 174 174 private void affineTransform(EastNorth org1, EastNorth org2, EastNorth dst1, EastNorth dst2) { … … 188 188 double dy = dst1.getY() - org1.getY(); 189 189 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 193 191 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 196 193 wmsLayer.getImage(0).scale(dst1, proportion); 197 194 }
Note:
See TracChangeset
for help on using the changeset viewer.
