In QGIS 3.22.13 I have deleted a number of points from a SHP file. They have gone from the map but still appear in the attribute table.
I have tried reloading the attribute table and saving closing and re-opening the layer. I have also updated to the current most stable version of QGIS.
When I select the deleted points in the attribute table and try to zoom to them I get an error message in the map which says
'Cannot zoom to selected feature: No extent could be determined'.
It is possible to manually select all points on the map, then invert the selection and delete the points that way. However I don't think this should be necessary. When a point is deleted in the map view it should be deleted in the attribute table. Can anyone help?
-
How did you delete them? Did you use the select tool, or did you delete the geometries using the vertex tool? The latter can cause issues.Matt– Matt2022年12月06日 12:02:23 +00:00Commented Dec 6, 2022 at 12:02
-
Ahah, yes I used the vertex tool! Thanks Matt. Will use the select tool from now on.Laura Bennett– Laura Bennett2022年12月06日 12:28:48 +00:00Commented Dec 6, 2022 at 12:28
-
1The vertex tool is fine for deleting vertices from more complex geometries (lines, polygons). However, if you clear a feature's geometry with it (in your case deleting a single point from a point layer) then it causes the issue you faced. (The feature still exists but it has no geometry). Selecting the feature and deleting it removes the feature altogether from the layer.Matt– Matt2022年12月06日 12:31:56 +00:00Commented Dec 6, 2022 at 12:31
-
Please, do not forget about "What should I do when someone answers my question?"Taras– Taras ♦2022年12月14日 06:04:59 +00:00Commented Dec 14, 2022 at 6:04
1 Answer 1
Solved - Use select tool to delete points not the vertex tool.
Explore related questions
See similar questions with these tags.