I have a line layer with two fields Field A
and Field B
using the same value representation. Every object has a value in Field A
, only some objects have a value in Field B
.
I am looking to create a symbology that styles the line according to Field A
.
But if a value in Field B
is present, the line should offset to one side and a second line with the same offset to the other direction should be created, using the same symbology but referencing Field B
.
I am now looking for a way to achieve this, hopefully via geometry generator.
This is my layer only styled by Field A
:
This is my current workaround and close to what I want to achieve:
I currently duplicate my layer and use the same styling with offset via geometry generator and referencing Field B
. So at the moment, my first layer is always using the line's real placement and the second layer is always set off. When there is a line with both values filled connecting to a line, where only one value is filled, it looks like this:
I would expect the upper line of the left part to be higher so the line on the right is connecting in the middle between the two lines on the left.
Field_B
have the same value withField_A
?Field_A
=3 andField_B
=6