1

I am fairly new to QGIS and I have a data set of points that I have plotted with lat & long. The points cover a large area and I'm am trying to figure out if there is a way to only show the points within an artificial boundary that I have created as a layer with the line tool. Basically, I have all these points outside of the boundary that I have created that I want to delete, or at least no appear on the map.

enter image description here

1
  • Vector > Research tools > Select by Location
    – Mapperz
    Commented Sep 20, 2022 at 20:26

1 Answer 1

2
  1. Convert the line to a polygon using Menu Vector > Geometry Tools > Lines to polygons.

  2. Run select by expression on the point layer with this expression: overlay_disjoint ('polygons') - replace polygons with the name of your polygon layer (output from step 1).

  3. Delete selected points. To delete, first select toggle editing (pen icon or keybord shortcut E), then press the delete icon.

Blue: initial point layer; dark red: initial line; light red: polygon created in step 1; yellow: points selected in step 2: enter image description here

7
  • Where do go to run the expression?
    – user212201
    Commented Sep 20, 2022 at 20:33
  • See screenshot I just posted
    – Babel
    Commented Sep 20, 2022 at 20:36
  • OK great, thanks. I think I got it to work and the points have changed to to different colors, but I cannot figure out how to delete the points on the outside of the boundary.
    – user212201
    Commented Sep 20, 2022 at 20:42
  • The button for "delete selected" is grayed out and not available to click
    – user212201
    Commented Sep 20, 2022 at 20:45
  • See edited answer for that. However, that is very very basic QGIS stuff, you should first make yourself confident with basic vector editing before going to more complex workflows. See e.g. youtu.be/kCnNWyl9qSE - especially at 10:50: youtu.be/kCnNWyl9qSE?t=650
    – Babel
    Commented Sep 20, 2022 at 21:00

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.