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'd like to make a USGS-style dirt road marker but with smaller dashes and bigger spacings (i.e. less duty cycle) to indicate lower quality road.

First attempt = two simple lines, custom dashes of the same value, offset same distance in opposite directions.

Problem is, when the line goes around a curve, the spacings don't automatically adjust (stretch on outside of curves, compress on inside of curves) to account for the curve, so you get something that looks like phase shifting or 'pulling' of one side relative to the other

enter image description here

So, some attempts to fix that:

  1. solid black line, centered, say width = 1; solid white line on top, centered, say width=0.6; so, this works to keep the dashes across from each other as the line curves, but, the center line that covers/hides the black is solid white - not transparent as in a USGS. Anyone know of a way to do that?

  2. change it to a marker layer - I used a font marker, picked a colon, set the y offset so it's basically centered, and good to go. The 'rotate' checkbox, on by default, seems to keep the dashes 'across' from each other as desired. Problem is, it's pixellated and a bit chunky looking.

So, is the cleanest solution to make a svg that looks nice and use that? Not sure how it will handle compressing on inside of curves vs stretching on outside of curves. What would really win is a checkbox in the dashed line type that says 'keep offset dashes across from each other around curves' or such, akin to the 'rotate marker' checkbox for marker lines.

Thanks in advance.

share|improve this question
up vote 1 down vote accepted

In QGIS 2.0, your solution no. 1 will work if you combine it with the new layer blending mode feature option "darken". It basically makes the white parts of the line transparent:

enter image description here

share|improve this answer
Thanks - Where/when can one download qgis 2.0? – Tom Grundy Sep 1 '13 at 14:59
@TomGrundy There is no final release yet, but you can get the almost finished version at – underdark Sep 1 '13 at 15:02
Downloaded QGIS 2.0.1, 'darken' works like a charm. Thanks! – Tom Grundy Sep 25 '13 at 14:45

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.