1

I have a points layer within a buffer derived from a transect. I need to sample a specified number of points, and ideally systematically based on distance. I have calculated the distances from a common furthest point using the NNJoin plugin, the challenge is how to select the specified points, from the closest to the furthest. In addition, does it matter how many points are selected from each side of the transect?

enter image description here

1 Answer 1

2

Use QGIS expressions with Geometry generator (for visulaization only) or Geometry by expression (to create actual geomtries): see here for details about both options.

Use it with this expression - here for the 100 closest points to the line:

collect_geometries(
    overlay_nearest (
        'points', 
        $geometry, 
        limit:=100  -- change the no. of points here
    )
)

Red: 1000 points; yellow: the 100 points closest to the line:

enter image description here

0

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.