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

In QGIS 2.0.1 Dufour, is there a way to connect different layer roads? Say i have 2 kinds of roads on 2 layers. One is main roads, the other is smaller ones. At the moment they go over each other depending on which of the layers is over another. Is there a way to somehow connect them but keep them on separate layers (with separate markings, line styles etc.)?

share|improve this question
is question about how to fix network topology or howto draw nice looking map? – simplexio Jan 2 '14 at 9:16
The second one - a nice looking map – user25384 Jan 2 '14 at 9:20
Are you asking about snapping lines to lines? If so, then you can set that in the Snapping Tolerance window. You can choose what layer you want to snap to. Part of it does sound like network topology, as roads should not cross roads, unless they are a fly-over highway. – Ryan Garnett Jan 2 '14 at 15:19
Why do you want to keep separate layers? Any reason besides styling? – underdark Jan 2 '14 at 21:52
No other reason, they need to appear different on a map (differrent width, color) – user25384 Jan 3 '14 at 11:04

If you have something like an TYPE on both shapefiles it is easy:

merge both shapefiles to one using vector-data management tools-merge shapefiles to one.

Add the resulting shapefile to the map and use categorized in the layer properties dialog and use the TYPE to determine the symbol.

share|improve this answer
Is there a way to keep the styling of those previously separate shapefiles? – user25384 Jan 3 '14 at 11:03
unfortunately you will loose them, but I think you can probably save the symbol-stile of the and reuse them in the new merged shapefile for each class of roads. – Riccardo Jan 5 '14 at 18:39
OK, this is becoming a full on discussion, but one more question: how do i apply differrent styles to differrent classes on the same shapefile? – user25384 Jan 6 '14 at 9:52
change this to fit the needs of your line shapefile:… – Riccardo Jan 6 '14 at 16:32

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.