3

I want to generate points along a line at equal intervals but the final point layer should not contain the vertices points. It should only contain points at specified intervals.

Tools in QGIS such as "Points Along Line" or "Points along Geometry" will include points at the vertices of the line layer.

3
  • Can you not generate points along the line then filter out and delete the begin and end points? Commented Feb 3, 2023 at 3:14
  • Sir, may you please explain a little bit more on how to filter the vertices points from the all points generated. @LeighBettenay. My line is a complex one with lot of vertices spaced irregularly. So can't find a method to filter even from the attribute table.
    – gk_mi
    Commented Feb 3, 2023 at 4:08
  • Related: gis.stackexchange.com/questions/25542/… suggests to use v.to.points grass.osgeo.org/grass82/manuals/v.to.points.html to place points at an defined interval along a line. Commented Feb 3, 2023 at 6:03

2 Answers 2

4

Create a Virtual layer through Layer > Add Layer > Add/Edit Virtual Layer with the formula:

select Line_Interpolate_Equidistant_Points(geometry, 50)
from "Simplified"

Replace "Simplified" with the name of your line layer, and 50 with your desired point interval. It will create a point every 50 m measured along each line.

The output will be a multipoint layer. Convert it to singleparts using "Multipart to singleparts":

enter image description here

4

You can use the tool "Points along geometry", which has the option to offset the start and end points by a specified distance.

In the following example, the distance is specified at a regular interval of 1000 meters. The same distance was used in the start and end offset to exclude the start and end points.

enter image description here

Here is the output:

enter image description here

enter image description here

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.