2

we have shape file with different attributes wich we want to show in the print composer. The goal is that we open 1 vector layer and the print composer shows 4 different maps (4 attributes). Is there a solution for that?

  • Could you clarify a little more please? Are you looking for a 4 different images all based on one single vector layer? And you want each of those images to represent a different attribute? – Joseph Nov 3 '14 at 12:47
  • Yes, this is what I'm looking for. – Pimpel Nov 3 '14 at 12:57
1

I'm using QGIS 2.6 to do this which makes it easier to filter out styles based on attributes, as you can see with the checked boxes beside each colour legend. Each legend depicts rules which are set in Layer Properties > Style > Rule-based:

Rule-based

Image

First select which attribute(s) you want shown in your first image via the legend:

Select attributes via legend

Add the map into your Composer:

Add map to composer

So now you have your first image based on a certain attribute:

Result for one image

Repeat this by filtering out the attributes via the legend add a new map into the composer until you get 4:

Final result

Hope this helps.

0

That is not really what I need to do. The problem is that we have a shape file with different columns whith the necessary atributes. Her is a pic which shows the problem a little bit better.

enter image description here

  • I've edited my post to include how each legend can be represented by a rule-based style. Apologies if I still misundertood, in which case others can advise. – Joseph Nov 3 '14 at 14:50
  • Your shape file has just one column with the shown attributes. In my file There are different attributes in 4 columns. – Pimpel Nov 3 '14 at 15:09
  • Do you perhaps need help with the filter expression for rule-based styling? Because then you can filter as many attributes for as many columns as you would like. Yes, I did use one column for my example but it can easily be repeated for multiple columns, just depends on what colour you want each attribute to represent. – Joseph Nov 3 '14 at 15:20
  • I tried this but I think it isn't the solution. Here is a pic (should be the composer result) and a shape file for a better understanding. dropbox.com/s/mh5vs618fo0pjbw/file.zip?dl=0 ![enter image description here][1] [1]: i.stack.imgur.com/epyVI.jpg – Pimpel Nov 4 '14 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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