Timeline for Deleting all features of Vector layer using PyQGIS
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 7, 2018 at 19:11 | comment | added | Vadym | For Qgis 3.2 instead of layer.deleteFeatures( listOfIds ) works layer.dataProvider().deleteFeatures( listOfIds ) | |
Apr 13, 2017 at 12:34 | history | edited | CommunityBot |
replaced http://gis.stackexchange.com/ with https://gis.stackexchange.com/
|
|
Nov 7, 2016 at 10:08 | comment | added | Joseph | @GermánCarrillo - That is indeed a much better approach, many thanks ;) | |
Nov 7, 2016 at 10:08 | history | edited | Joseph | CC BY-SA 3.0 |
Added more efficient approach thanks to @GermánCarrillo
|
Oct 26, 2016 at 20:00 | comment | added | Germán Carrillo | You could remove all features at once with layer.deleteFeatures( listOfIds ). | |
Oct 26, 2016 at 11:50 | comment | added | Joseph | @Sjs - Awesome, glad it worked =) | |
Oct 26, 2016 at 11:50 | comment | added | Sjs | That works perfectly !! | |
Oct 26, 2016 at 10:20 | vote | accept | Sjs | ||
Oct 26, 2016 at 9:46 | history | answered | Joseph | CC BY-SA 3.0 |