I have a shapefile with track lines and I need to generate random points from each 1 km of every line. There is a function in QGIS Random points but it offers to generate random points only inside a polygon. Any ideas for a specific plug-in or another solution?

2 Answers 2


What about from the processing toolbox where there's a tool called Random points along line.

You can also set the minimum distance.

  • Thanks! I took a me a while to find out this processing algorithm is in Commander (not displaying in Toolbox) but I did and it works!. Jul 10, 2016 at 9:22
  • @MiroslavKutal, you will need to change the simplified interface to advanced at the bottom of the toolbox. And your welcome!
    – user35594
    Jul 10, 2016 at 9:48

First off all you have to make sure that your Project and data CRS are in the Projected References. then go to:

Qgis > Processing > Toolbox > (type) Random points along line... You´ll see it in Vector creation tools > right clik and execute...

enter image description here

Number points = If you put 1 you´ll only see one point, Minimum distance = In meters (E.g. 1000).

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.