2

I am trying to find a way to export unique points from a pointlayer in QGIS. Using the tool ‘Extract vertices’, I generated corner points from polygons in the input layer (first image). I now only need one point per polygon to remain in the pointlayer. The ‘Extract vertices’ tool conveniently generates a column in the attribute table containing the vertex_part_ring value, portraying from what vertex the point is originated from (second image). I am looking for a way to (automatically) export one point from a shared vertex_part_ring series.

Below is the polygon the points are originated from. (Sample project)

Origin polygon

Below is a screen capture of the attribute table as a result of the extract vertices tool. The column ‘vertex_part_ring’ gives the origin of the point. I need to keep only one point from each origin series.

Extract vertices result

saQuist
9031 gold badge9 silver badges27 bronze badges
asked Apr 13, 2021 at 9:17
6
  • 1
    One point per polygon, or one point per ring? Commented Apr 13, 2021 at 9:19
  • It's not clear if the points even need to be on the ring boundaries. If not, it would probably be easier to polygonize them then make centroids. Commented Apr 13, 2021 at 12:53
  • @Erik I would like to keep one point per ring Commented Apr 13, 2021 at 13:59
  • 1
    @GabrielC. I need to keep one point per ring boundary. Commented Apr 13, 2021 at 14:01
  • Is your input polygon layer singlepart or multipart? Commented Apr 13, 2021 at 14:54

1 Answer 1

0

You could use the Extract by expression tool on your vertex layer with the following expression:

"vertex_part_index" = 1 AND "vertex_part_ring" <> 0

This will extract all rings' first vertex except for the main polygon perimeter.

answered Apr 13, 2021 at 17:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.