11

I have a vector layer being rendered in QGIS.

I want to delete various features in the layer. I'm currently deleting each node by selecting the node through node tool and then pressing the delete button.

But I want to delete very large portions in the map. Using this method will cause a lot of time.

Is there any other method where I can draw a polygon around the feature which needs to get deleted and delete them easily?

15

Use the select tool (either select by rectangle or select by polygon) to select the features you want to delete. Then you can delete all of them by hitting the delete button on the tool bar.

QGis Screenshot

| improve this answer | |
  • I believe editing must be on in order for you to delete the selected features. In QGIS 2.18 you can do this by going to menu Layer -> Toggle Editing – Selah Jul 12 '19 at 19:16
12
  1. Use Edit > Select > Select Features by Polygon. Draw a polygon to surround the features you want deleted. (Left click for each point then right click to close your polygon.) enter image description here

  2. Click Layer > Toggle Editing. enter image description here

  3. Click Delete Selected from the Editing toolbar. enter image description here.

Note: This process deletes all the selected features. I'm not sure how to select and delete only a certain node/vertex within a feature.

| improve this answer | |
  • You can delete nodes of a line/polygon with the node tool. You can select the nodes by rectangle, and press the del key. Only selecting by polygon is not possible. – AndreJ Nov 26 '12 at 12:06
  • This doesn't necessarily work, at least not with the current file I am editing. – MSC Aug 18 at 6:32
  • Continuing from my earlier comment: If Layer > Toggle Editing is disabled, save the features as a new file (right click the layer name in the Layers panel, select Export > Save Features As...) which will unlock the ability to delete features. Then proceed as @maning has described. – MSC Aug 18 at 6:48
4

Using a Select Features by ... tool and pressing delete will work most of the time.

However, you can run into a problem where you try to delete a feature using the Delete Selected tool and it doesn't let you. This will happen if, for example, you are attempting to delete the last two nodes in a line feature part.

If you want to delete a feature part by selecting and deleting nodes, you need to use the Advanced Digitizing toolbar:

Advanced Digitizing Toolbar

Delete Part Tool:

Delete Part Tool

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.