In GDAL 1.9.0 and Python 2.7.2,

    feature.SetField(0, u'xxx')

raises the following exception

    NotImplementedError: Wrong number of arguments for overloaded
function 'Feature_SetField'.
    Possible C/C++ prototypes are:
        SetField(OGRFeatureShadow *,int,char const *)
        SetField(OGRFeatureShadow *,char const *,char const *)
        SetField(OGRFeatureShadow *,int,int)
        SetField(OGRFeatureShadow *,char const *,int)
        SetField(OGRFeatureShadow *,int,double)
        SetField(OGRFeatureShadow *,char const *,double)
        SetField(OGRFeatureShadow *,int,int,int,int,int,int,int,int)
        SetField(OGRFeatureShadow *,char const *,int,int,int,int,int,int,int)

Rouault mentioned the same error.
http://lists.osgeo.org/pipermail/gdal-dev/2010-September/026156.html

Are unicode field values supported in the Python bindings for GDAL?
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to