File tree 1 file changed +17
-0
lines changed
src/plugins/georeferencer
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -516,6 +516,23 @@ bool QgsPointDialog::generateWorldFileAndWarp()
516
516
return false ;
517
517
}
518
518
}
519
+ else // MH: don't forget the linear transformation ;-)
520
+ {
521
+ double xOffset = 0 ;
522
+ double yOffset = 0 ;
523
+ QFile file ( worldFileName );
524
+ if (!file.open (QIODevice::WriteOnly))
525
+ {
526
+ return false ;
527
+ }
528
+ QTextStream stream (&file);
529
+ stream<<QString::number (pixelXSize, ' f' , 15 )<<endl
530
+ <<0 <<endl
531
+ <<0 <<endl
532
+ <<QString::number (-pixelYSize, ' f' , 15 )<<endl
533
+ <<QString::number ((origin.x () - xOffset * pixelXSize), ' f' , 15 )<<endl
534
+ <<QString::number ((origin.y () + yOffset * pixelYSize), ' f' , 15 )<<endl;
535
+ }
519
536
520
537
// write the data points in case we need them later
521
538
// saveGCPs( mapCoords, pixelCoords );
You can’t perform that action at this time.
0 commit comments