I add a shapefile of the district in Paris on another shapefile. I would like to match them. See images below:

enter image description here

The black border is the original, the blue one is what I want to get.

enter image description here

I tried with the editing polygon function, espacially reshape polygons, offset x,yand then the delete parts function. The last one deleted what I wanted :

enter image description here

enter image description here

But now I need to close them. I could maybe draw them but I would like to rely on the shapefile below for more accuracy.

So :

  • How to make new border based on the shapefile underneath?
  • Maybe there is another way?
  • How could I draw them if there is no other way ?

Using @snaileater's answer worked as I wanted , I had to reshape the original shapefile (first image) with the vertex tool and to choose in the snapping options current layer.

It was a bit laborious because it was manual, so I was asking myself if there would be a way to do it with a mask or a buffer ?

  • Turn on snapping to vertex (in the snapping toolbar). This will make it easy to quickly and accurately draw lines that match the other layer.
    – csk
    Apr 8 '19 at 20:54

You have to add the missing vertices of your 'black' layer (arrondissements ?...) :

To achieve that use the vertex tool ("outil de noeuds"). When using that tool u can activate "snapping options" that means that every new vertex added will 'stick' to existing ones (from the same layer or other layers).

You set the snapping options in : Project / Snapping Options (QGIS 3.4.4)

In the options you're able to choose any layer (one or more) on which your new vertices will be snapped. If you choose to snap to a given layer it is usually advised to use the same amount of vertices (no more no less than needed)

  • It worked ! I was asking myself if there would be another way to do it, like with a mask (but I think it's more for rasters) or with a buffer ?
    – Svhooren
    Apr 18 '19 at 11:13

Depending on your "another shapefile" (the bottom layer in red) there could be another way

Specifically if the shapefile has a district field (if not you could add the field and fill it with a spatial joint) you could use the Dissolve tool with this district field, the result is that all polygon who share the same district value will be aggregated as one polygon. This way you dont have to manually edit your layer and the common border between the original and the newly created layer are perfectly superposed. The downside is that it create a new layer for district that won't have the same attribute as the one you tryed to edit.

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.