QGIS 3.0.1
I wrote a code to create a vector layer and save it to disk as shapefile . Is there a way I can save its geometry property as 'Point' and SHPT as 'Point'
from qgis.core import *
import qgis.utils
QgsApplication.setPrefixPath("C:/Program Files/QGIS 3.0", True)
qgs = QgsApplication([], False) ###
qgs.initQgis() ###
_layer1 = QgsVectorLayer("C:/Arundhati/Automation Test Script/Radio Signal/MasterLine.shp", "MASTERLINE", "ogr")
if not _layer1.isValid():
print("Layer failed to load!")
else:
print("Layer was loaded successfully!")
_writer1 = QgsVectorFileWriter.writeAsVectorFormat(_layer1,"C:/Arundhati/Automation Test Script/Radio Signal/MasterLine12.shp",'utf-8',QgsCoordinateReferenceSystem(),'ESRI Shapefile')
qgs.exitQgis()
please suggest.