Hot answers tagged


Bit of a convoluted process but this should work (make dbf layer vector layer, convert dbf to csv, then convert csv to delim layer, and finally convert delim layer to shp): DBFlyr = QgsVectorLayer(myDBFPath, 'anyName', "ogr") myCSVPath = 'C:/Temp/myCSV.csv' QgsVectorFileWriter.writeAsVectorFormat(DBFlyr, myCSVPath, "utf-8", None, "CSV") uri='file:///'+ ...

Only top voted, non community-wiki answers of a minimum length are eligible