Bug report #18491

QGIS 3 - badly generated jgw file

Added by Tomasz Romaszkiewicz about 2 years ago. Updated about 2 years ago.

Status:Closed
Priority:Normal
Assignee:Nyall Dawson
Category:Map Canvas
Affected QGIS version:3.0.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26379

Description

If you have set the rotation of the canvas to bigger than 90 degress and then try to save map as image file then QGIS will generate wrong word file - the fourth value has double '-' at the beginning. Sample:

-0.01847046396465634
1.05817217183748857
1.05817217183748857
--0.01847046396465634
-1695664.99200768675655127
9425646.86312681064009666

Associated revisions

Revision a2ba566e
Added by Nyall Dawson about 2 years ago

Fix generation of world file when exporting canvas

Fixes #18491

Revision 204e0c12
Added by Nyall Dawson about 2 years ago

Fix generation of world file when exporting canvas

Fixes #18491

(cherry-picked from a2ba566)

History

#1 Updated by Nyall Dawson about 2 years ago

  • Status changed from Open to Feedback

Can you please confirm whether the correct line should be:

"0.01847046396465634"

or

"-0.01847046396465634"?

#2 Updated by Tomasz Romaszkiewicz about 2 years ago

  • Assignee set to Nyall Dawson
  • Status changed from Feedback to Open

As we have checked, the correct values should be:

-0.01847046396465634
1.05817217183748857
1.05817217183748857
0.01847046396465634
-1695664.99200768675655127
9425646.86312681064009666

So the double '-' should disappear.

#3 Updated by Nyall Dawson about 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF