2

I've tried to create a vector file (shapefile) with QgsVectorFileWriter. This is my code:

path = "/home/camilocorredor/Documentos/ANT/4_Abril/File.shp"    
options = QgsVectorFileWriter.SaveVectorOptions()
options.driverName = "ESRI Shapefile"
    
QgsVectorFileWriter.writeAsVectorFormatV2(layer_test, path, QgsCoordinateTransformContext(), options)

The vector file never is created on the folder.

Any suggesting?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.