[gdal-dev] Setting encoding using Python API

Roger André randre at gmail.com
Fri Jan 30 01:42:50 PST 2015


Awesome!  I hate to ask [another] dumb question, but how can I peruse that
autotest suite?  Under some sort of "test" dir in the install?

Roger

On Fri, Jan 30, 2015 at 1:39 AM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Le vendredi 30 janvier 2015 10:37:30, Roger André a écrit :
> > Hi All,
> >
> > Curious how I go about specifying the equivalent of "-lco ENCODING=UTF-8"
> > when using the Python API to write out shapefiles with OGR?
>
> Roger,
>
> sure: taken from autotest suite:
>
> shape_ds.CreateLayer('test_utf_cut', geom_type = ogr.wkbPoint, \
>         options = ['ENCODING=UTF-8'])
>
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150130/14f13698/attachment.html>


More information about the gdal-dev mailing list