[gdal-dev] Are unicode field values supported in the Python bindings for GDAL?

Roy Hyunjin Han starsareblueandfaraway at gmail.com
Tue Apr 10 17:49:02 EDT 2012


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?


More information about the gdal-dev mailing list