[Qgis-developer] Python plugin: Bug with QgsVectorFileWriter?
Bernhard Ströbl
bernhard.stroebl at jena.de
Tue Oct 7 07:28:27 PDT 2014
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
> Qgis-developer at lists.osgeo.org
> 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
More information about the Qgis-developer
mailing list