This works for me:

writer = QgsVectorFileWriter("my_shapes.shp", "CP1250", QgsFields(),QGis.WKBLineString, None, "ESRI Shapefile")

QGIS 2.4 64 bit on Win7

Which QGIS version do you use?

Bernhard

Am 07.10.2014 16:21, schrieb Luca Manganelli:
Hi, in Python, if I do:

writer = QgsVectorFileWriter("my_shapes.shp", "CP1250", QgsFields(),
QGis.WKBLine, None, "ESRI Shapefile")

Qgis raises an error telling that first parameter is "str", but he
wants "QString"...????
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer


__________ Information from ESET Mail Security, version of virus signature 
database 10524 (20141007) __________

The message was checked by ESET Mail Security.
http://www.eset.com




__________ Information from ESET Mail Security, version of virus signature 
database 10524 (20141007) __________

The message was checked by ESET Mail Security.
http://www.eset.com


_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to