pyqgis write vector layer as tab delimited txt file

المشرف العام

Administrator
طاقم الإدارة
I'm using the following QGIS 2.8 Python code to save results to a txt file

QgsVectorFileWriter.writeAsVectorFormat(inputLayer, "D:/dstest/my_csv", "CP1250", None, "CSV",True) I would like to be able to write the results to a TAB delimited txt file as opposed to the comma delimited one produced by the statement above. Can this be done through QgsVectorFileWriter.writeAsVectorFormat or is there another way?

Thanks

Ian



أكثر...
 
أعلى