4

I have several line layers which i am trying to style with random colors. I want the lines styled in such a way that adjacent lines are assigned different colors so that each is clearly differentiated. I tried applying Categorized styling using an attribute that is unique, the result had instances where adjacent lines were the same colors. I found a plugin and some tutorials on doing the same for polygons.

Four color theorem for QGIS? (4 colour)

Consistent layer colors that are automatically adjusted based on adjacent polygons?

Would it be possible to do the same for lines. I am using QGIS 2.18.3

Sample output

  • Although the two indicated lines may look they have similar color, but the blue levels are different. You can reload the categorized random color style several times until you get satisfied with the results. – ahmadhanb Dec 22 '17 at 6:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.