Feature request #10820

checkbox to 'derotate' certain layers in composer

Added by Tom Grundy over 2 years ago. Updated over 1 year ago.

Status:Closed Start Date:07/05/2014
Priority:Low Due date:
Assigned to:- % Done:

0%

Category:Map Composer / Printing
Target version:Future Release - Lower Priority
Platform: Resolution:fixed/implemented
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

I have a map that is rotated 1.6 degrees in composer, and it has a lot of point layer markers (svg icons) on it that look a lot better if they are left 'upright' i.e. not rotated at all, i.e. rotation = 0 degrees instead of 1.6 degrees.

The question applies to any map rotation angle.

One way to do it is to set the rotation of that layer's svg markers to 358.4 in the qgis editor, but honestly it looks a bit odd because rotating it 358.4 in the editor then again 1.6 more in the composer results in some not-quite-exactly-360 visual artifact in the rendered composer, maybe due to rounding error.

Found another solution here:
http://gis.stackexchange.com/a/98002/19306

But that would probably suffer from the same artifacts, and it seems like the solution could be cleaner.

So, this feature request is to add a checkbox to each layer in the main editor - maybe in the style editor - labeled something like "keep markers horizontal when rendered in the composer", but that wording probably needs some polishing. It would be interesting to also have a field where you could set the target rendered rotation to any angle, i.e. replace the word "horizontal" above with the rotation of your choice. I can't think of when that would be needed, but you never know.

Of course it's still important to calculate the marker's origin correctly, in case it has an offset; this only addresses the rotation of the marker itself about its correctly calculated origin based on the rotation of the map in the composer.

History

Updated by Giovanni Manghi over 2 years ago

  • Target version set to Future Release - Lower Priority
  • Platform deleted (Windows)
  • Platform version deleted (Vista 32 home basic)

Updated by Nyall Dawson over 1 year ago

  • Status changed from Open to Closed
  • Resolution set to fixed/implemented

Fixed in master since 2.8

Also available in: Atom