I want to create points along a polyline.

The distance between each „nearest-to-point“ position on the line and the shortest distance of each point to the line should be 2 parameters that can be set before creating this point layer. The points should also alternate the sides.

The wished result would loke like the this:

  • 1
    Welcome to GIS SE. Please take the Tour. For someone to provide you with an answer, it is expected that you share what you have tried and where you are stuck.
    – Kasper
    Feb 19 at 17:28
  • since i am a greenhorn, i stuck at the very beginning. so it was not possible to fulfil these requirements
    – Jakob
    Feb 20 at 22:28

1 Answer 1


You can use Geometry by expression with the expression:

nodes_to_points( triangular_wave( $geometry, 100, 10))

It will create a zigzag-wave along the line where 100 is the wavelength and 10 the amplitude, then extract the vertices:

enter image description here

  • Thank you, this is what I was searching for. The expression does not work. Are there pre-settings that I have to keep attention to?
    – Jakob
    Feb 20 at 22:19
  • Do you have some old version of QGIS?
    – BERA
    Feb 21 at 6:04
  • yes, that was the problem, thanks!
    – Jakob
    Mar 29 at 15:15
  • Nice! Please accept my answer with the checkbox
    – BERA
    Mar 30 at 10:49

Your Answer

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

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