0

I want to make a complicated symbology for my layer. Now it's categorized on column use and I want to add a term "If use=street, different symbology to lamp_type column (H=(x),L=(y) and others=(z)"

(x) (y) and (z) are symbols

I mean by that, that categorized symbology has another categorized symbology in it

I have two relevant columns one is "use" which contains [road, street, etc.] and the other is "lamp_type" which contains words like [HPS,LED,MH] etc. I need to make special symbology for every item in "use" and if the "use" is "street" I need to make special symbology for every item in "lamp_type"

How can I set up symbology this way?

0

You can either use an expression which connects both columns as base for categorised style, or you can go for rule based styling. As to the specific formula: Either you give some more and clearer details on your data structure and the intended display, or you work it out yourself based on the examples in the expression dialogue.

/edit: Okay, it really is quite easy: Go to the style-tab, choose categorised and enter the following:

if ("use"='street',"lamp_type","use")

Basically this says: If the feature is registered as a street, categorise it based on the column "lamp_type", else use the column "use".

Have fun fiddling with your symbols, and bear in mind: Best not use more than seven colours, and ideally use the same colour for all "street"-features and differentiate them by using different strokes.

  • Ok so I have two relevant columns one is "use" which contains [road, street, etc.] and the other is "lamp_type" which contains words like [HPS,LED,MH] etc. I need to make special symbology for every item in "use" and if the "use" is "street" I need to make special symbology for every item in "lamp_type" – tristramit Aug 22 '18 at 12:36
  • Added the "code" to my answer. If it doesn't work, please report any error messages. – Erik Aug 22 '18 at 13:14

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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