Skip to main content
spelling
Source Link
Houska
  • 8.4k
  • 21
  • 51

SoluctionSolution is :

QgsVectorFileWriter.writeAsVectorFormat(layer,
"/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv",
"utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

using r".." in lunixlinux was part of the error are this is a shortcut for windows path formatting.

The second mistake was passing none as a projection. Specifying the drivename as it is a keyword argument as the layer option seemed to have solved it.

Soluction is :

QgsVectorFileWriter.writeAsVectorFormat(layer,
"/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv",
"utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

using r".." in lunix was part of the error are this is a shortcut for windows path formatting.

The second mistake was passing none as a projection. Specifying the drivename as it is a keyword argument as the layer option seemed to have solved it.

Solution is :

QgsVectorFileWriter.writeAsVectorFormat(layer,
"/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv",
"utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

using r".." in linux was part of the error are this is a shortcut for windows path formatting.

The second mistake was passing none as a projection. Specifying the drivename as it is a keyword argument as the layer option seemed to have solved it.

added 6 characters in body
Source Link
Bera
  • 77.7k
  • 14
  • 78
  • 187

Soluction is :

QgsVectorFileWriter.writeAsVectorFormat(layer, "/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv", "utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

QgsVectorFileWriter.writeAsVectorFormat(layer,
"/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv",
"utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

using r".." in lunix was part of the error are this is a shortcut for windows path formatting.

The second mistake was passing none as a projection. Specifying the drivename as it is a keyword argument as the layer option seemed to have solved it.

Soluction is :

QgsVectorFileWriter.writeAsVectorFormat(layer, "/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv", "utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

using r".." in lunix was part of the error are this is a shortcut for windows path formatting.

The second mistake was passing none as a projection. Specifying the drivename as it is a keyword argument as the layer option seemed to have solved it.

Soluction is :

QgsVectorFileWriter.writeAsVectorFormat(layer,
"/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv",
"utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

using r".." in lunix was part of the error are this is a shortcut for windows path formatting.

The second mistake was passing none as a projection. Specifying the drivename as it is a keyword argument as the layer option seemed to have solved it.

Source Link
Al rl
  • 682
  • 3
  • 12

Soluction is :

QgsVectorFileWriter.writeAsVectorFormat(layer, "/Users/user/Desktop/gis/Excel/NUTS_ID_AT111978Q1.csv", "utf-8",driverName = "CSV" , layerOptions = ['GEOMETRY=AS_XYZ'])

using r".." in lunix was part of the error are this is a shortcut for windows path formatting.

The second mistake was passing none as a projection. Specifying the drivename as it is a keyword argument as the layer option seemed to have solved it.