Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a route in QGIS that visits every road/edge at least once. By using a marker line I can see the direction of the route, but it doesn't show the order of the segments (see the screenshot below). Is there any style/visualization that will allow me to see the order of the roads in the route?

Currently the route is a single polyline, but I can split it into segments if that will make it easier (the route is generated with Python code).

Route example

share|improve this question
I'm guessing order is just a int value? – Nathan W May 12 '13 at 8:49
@NathanW yes, it can be represented as an int value. One solution would be to display that int as the edge label, but I'm hoping there's a more elegant way. – Ralf May 12 '13 at 14:55

I suppose you want something like this? :


Unfortunately you will need to make it mostly manually. Use graduated symbology to classify your lines. Then change every symbol by adding marker with the offset and copy and paste colour code from line colour to marker border colour, and then set the colour of the line to desired uniform colour (black in my case).

If it is your constant task, maybe you should use some script to generate .qml-files.

Another option is after applying graduated symbology instead of adding markers, just add offset to every line to get something like that:


The vertices looks disjoint in this case, but overall route visualisation is better to my mind.

share|improve this answer
Can this be done with a single polyline, or do I need a separate line for each segment? – Ralf May 13 '13 at 16:02
@Ralf, no, I don't think that you can do it with a single polyline. – SS_Rebelious May 13 '13 at 17:14

You could map your order value to a colour intensity value and use these values along the polyline as your progress through the order of roads. Intensity is a good pre-attentive attribute so it should produce an easily interpretable result.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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