3

I have several line layers that run parallel to each other and would like to assign the geometry of the central line to all the others without losing information in the attribute tables.

Is there a way to automatically move all lines towards the position of my central line?

I would like to move all lines to the position of the bold pink line automatically

3
  • There is a tool in the processing toolbox called "snap geometries to layer" that sounds like it would do what you want. – csk May 2 '18 at 19:09
  • That was exactly what I was looking for, thanks a lot! – Fabian Kratz May 3 '18 at 5:45
  • Happy to help. I won't post that as an answer because I haven't used that tool before and can't provide any details. So feel free to post an answer to your own question, if you want to help other users of the site. – csk May 3 '18 at 15:16
2

According to csk's comment to my question, I tried using "snap geometries to layer" from the processing toolbox. This worked just the way I wanted and snapped all parallel lines to the central line. With this feature, you can choose the layer you wish to snap to another geometry, choose a layer as reference layer to which the other layers shall be snapped, choose a tolerance of layer units and define the mode with which the geometries should be snapped. I wanted to have the programme add additional nodes wherever necessary, which led to the desired result.

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.