12

I am footling around with QGIS and the British OS Strategi dataset. If I render the roads with a simple line style they look fine:

enter image description here

However, if I apply something slightly fancier, it looks wrong, because the style is applied to each segment of the road as opposed to the whole road (as we perceive it), as seen in the white lines on the blue motorway below:

enter image description here

How can I merge these segments together, or failing that force QGIS to treat them as one line?

I'm not using the data for navigation so I don't mind if the segments are lost.

19

Activate symbol layers in the advanced options of your road style.

With rule-dependent styles, check rendering order. Terminology seems inconsistent unfortunately.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

1

You could duplicate the layer, then order them to the white line is drawn over the blue line.

Whilst you'd have to manage both layers, you do get better control over the appearance.

0

To make your fancy style road, you can stack two lines with offsets, rather than a thin line on a large. You will have two beautiful lines without interruption even if you have multiple segments.

0

To merge the road lines try selecting the vector line data that you want to merge.

Go to its 'properties' then select the 'style tab'.

Then in the 'symbols in group' section select 'advanced' a drop-down menu should appear select 'symbol levels'.

Then in the 'symbol levels' dialog box select 'Enable symbol levels', then click 'OK'.

Next select 'Apply' (to see if it has worked) and then 'OK' to confirm that you want this action to be carried out.

This should hopefully result in the road lines becoming merged.

You can also refer to this manual for more information:

https://docs.qgis.org/2.18/en/docs/user_manual/working_with_vector/vector_properties.html?highlight=lines

Hope this helps! :)

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.