Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Because of my thesis layout requirements, I have to rotate 270° some of my maps in composer.
There are (many) svg smbols (icons), and they are rotated as well.
I would like to (non-)rotate them in order to keep them upright, so one doesn't have to continuosly rotate the page or the neck ;)
Is there a way to do that? Note that I would like to do it on the composer stage since some of my maps are normally placed north-south. Thanks for the attention!

share|improve this question
See this closed question… – Mapperz May 7 '13 at 15:23
thanks, but maybe I didn't explain well my problem: I use the same layers in different layouts, some with the "global", rotated, map and some with portion of the global map in the original orientation. so in the global map the symbols have to be rotated, but not on the "portions". – sanzoghenzo May 7 '13 at 21:06
up vote 0 down vote accepted

Here's an approach which would work in QGIS 2.2 and above. You can set a data defined rotation on the symbol which matches whether the map is being rendered in a specific composer map or to the main map canvas - this is done using the '$map' variable. $map will be 'canvas' for the main window, or a map item's id if it's being rendered in a composition.

So, to begin, set the map item's id to something like "rotated_map_01": enter image description here

Then, in your layer's symbol properties, click the "Data Defined Properties" button: enter image description here

Check "Angle" and click the expression builder button. You want to enter an expression along this lines of

CASE WHEN $map LIKE 'rotated_map%' THEN 270 ELSE 0 END

enter image description here

This expression will return 270 if the map item's id begins with "rotated_map_", or 0 otherwise. So, in any composer maps with an id "rotated_map_01", "rotated_map_02", etc the symbol will be rotated 270 degrees!

share|improve this answer
Thanks for the answer. Unfortunately I didn't use QGIS anymore (finished my thesis and still have to find a job :( ) but this method will come in handy when I'll use it again! – sanzoghenzo Jul 23 '14 at 16:33

I think that what you could do is create 2 different layers of points.

One for the Global and one for the portions

If you do that you should be able to independently rotate the svg icons by double clicking the icons on the layers panel and then doing the same thing within the properties panel and selecting the rotate to the desired angle.

This might be achievable if you separate the two data files in excel and saving them as a CSV file

share|improve this answer
Ok, so the short answer is I can't do it. thanks. The problem with your solution is, if I want/have to change something in the symbols, I have to do it twice. – sanzoghenzo May 9 '13 at 14:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.