[gdal-dev] Setting encoding using Python API
Even Rouault
even.rouault at spatialys.com
Fri Jan 30 01:51:40 PST 2015
Le vendredi 30 janvier 2015 10:42:50, Roger André a écrit :
> 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?
>
It is there in SVN : http://svn.osgeo.org/gdal/trunk/autotest/
or the gdalautotest archives in http://download.osgeo.org/gdal/1.11.1/
> 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
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list