TransWikia.com

Delete an object or polygon that has been selected in a layer using the Graphical Modeler?

Geographic Information Systems Asked on December 31, 2021

I wish to create a model in QGIS 3, that can delete a specific polygon that has been selected in a layer. Is it possible to do this? I go through a few different locations in a day and I don’t wish to waste time manually deleting that polygon every time I open up a new location. I already have a model that selects the polygon via longitude and latitude, and I really just wish to add an algorithm on top of that, if that isn’t possible create a new model entirely.

2 Answers

You can achieve that using basically two steps.
First use the save selected features, so QGIS will create a copy of the selected features.

After that, use extract by location between the original entry and the features selected with the disjoint premise.

Depending on how your file is, you may need another type of comparison, using a join by attributes field is also possible, just save the Unjoinable Features output.

enter image description here

Answered by Herbert Santos on December 31, 2021

If the selected polygons are a different entity in the attribute table you can erase them all together.
First you need to choose the those polygon, so they will be selected in the attribute table.

enter image description here

Then, once the layer is in editing mode you can erase all the marked polygons at once with the "Delete Selected" button. It is located near the "Editing Mode" button and its icon is a red garbage can.

enter image description here

Answered by Nitzan Matan on December 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP