3

I just discovered this post and I found what I searched here. But I was wondering if there was a way to have multiple layers (let's say l1, l2, l3, l4) being updated automatically when you change something on one of them.

For example if I change the outline style of l1 from solid to dot I would like to see l2, l3 and l4 updated the same way without copy/pasting the style like mentioned in the link

(I'm using qgis 2.18.28 on windows)

2
  • Welcome to GIS:SE @pierrem! Are those layers of the same type? I.e. all polygon layers or all line layers etc?
    – Joseph
    Commented Jul 5, 2019 at 12:22
  • hey thank you ! yes they are all the same type (polygon) Commented Jul 5, 2019 at 12:28

1 Answer 1

2

It's possible to use data defined style and variable in combination to achieve that.

Basically you create project variable like "Outline_variable" and give it one of the accepted value :

(Expected input:string [no|solid|dash|dot|dash dot|dash dot dot])

Then you set the data defined symbology to variable>Outline_variable for each of you layer

Now you just have to modify the project variable from 'solid' to 'dot' to change the outline of all your layer (and of course you could set as many variable as you need for controlling symbology parameter like stroke colors, stroke width, fill color, ....)

1
  • i'm happy to see your comment this morning and i will definitely give it a try tomorrow i'll keep you updated thanks ;) Commented Jul 7, 2019 at 9:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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