Remove more than one fields from a shapefile using a python script

المشرف العام

Administrator
طاقم الإدارة
I'm using the python console of QGIS 2.8.1-Wien.I have a shapefile with many fields in the table that I want to remove them.I tried to use this geoalgoritm as:

processing.runalg('qgis:deletecolumn', myshapefile.shp, "myfield", myoutput.shp) This works perfectly and the field I want is removed.My question is: if I want to remove more than one fields how should I write this formula? Or there are any other way to write a python script?



أكثر...
 
أعلى