Currently using QGIS to draw some waste water network.

Styling depends on the size of pipe (thickness of the line)

enter image description here

AND on the status of the pipe (continuous, doted, ...)

enter image description here

It's actually fine since I had three size classes, but when changing to 10 size classes, it becomes to heavy to maintain since each class must be defined by hand.

This would be useful on many projects.

  • What do you need exactly? As what would you like to have as a feature here.
    – Nathan W
    Jul 13, 2016 at 10:00
  • Could you post a image of your rules that you currently using.
    – Nathan W
    Jul 13, 2016 at 10:28
  • @NathanW The idea would be to set styling sub rules. Example : General rule : line thickness is a parameter of pipe size (like we do actually with graduated classification) Sub rule : line style is a parameter of pipe status (like we would do actually with categorised)
    – Nono
    Jul 13, 2016 at 11:04

1 Answer 1


A solution would be to define styling fields attached to the data set using the field calculator.


Field "thickness" -> classified pipe size value

Field Calculator

FIeld "style" -> Classified pipe status value

And then use these values to draw with specific parameters.

enter image description here

But this is not very intuitive and it will not print correctly the legend.

OR Use the right way and use rule enhancement option (Not stable actually on QGIS 2.16) but where you can add a sub rule to mainly change color

  1. Add a primary Styling on size

Size Filtering

  1. Go to Rules Rules

  2. Add rule enhancement Add sub rules

Mainly color and size, not shape

Your Answer

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

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