I have a large number of files whose attribute fields are named consistently, but incorrectly. I would ordinarily use ogr2ogr.exe to fix this from the command line using something like:
ogr2ogr "C:\Temp1\OutDataSet.shp" "C:\Temp1\asdf\InDataSet.shp" -sql "SELECT End AS LineEnd, begin AS Begin FROM InDataSet"
This creates a new .shp file, renames attribute fields from
LineEnd and from
Begin , also drops many unwanted attribute fields from the original shapefile.
I was hoping that I could achieve the same thing from QGIS 2.18 processing toolbox > [OGR] Miscellaneous > Execute SQL, as It is easy to set up a batch by using the QGIS forms. Has anyone had any success with this tool for this task?