I have one line with multiple features that I split into separate lines based on features. Now, the two lines that have separate features meet since they were one line before. What I want to do now is to make a gap between these two lines of a certain size. Any idea how to do it in QGIS?

See the place where they meet? I need to get a gap there of 10m from each side.

enter image description here

  • Welcome to GIS SE! We're a little different from other sites; this isn't a discussion forum but a Q&A site. Your questions should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. Please check out our short tour for more about how the site works
    – Ian Turton
    Feb 14, 2023 at 11:16
  • 1
    Extract the "meeting point", buffer by 10 m, clip your lines, tada.
    – Erik
    Feb 14, 2023 at 11:23
  • Thx Erik, I have the same logic but implementation is causing problems. :D
    – Ivan
    Feb 14, 2023 at 11:34
  • FOUND IT! Thnx. :)
    – Ivan
    Feb 14, 2023 at 11:36
  • 1
    Yeah, you know what I mean -.-
    – Erik
    Feb 14, 2023 at 12:15

1 Answer 1


You can use a Geometry expression like so:

    length($geometry) - 10

If it is for visualisation purposes only, you can make a Geometry Generator symbol layer:

enter image description here


The thinner line is the original geometry, the thicker overlay is the result of the expression.

enter image description here

If you need to make a new data layer, you can use the same expression with the Geometry by Expression tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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