[gdal-dev] Setting encoding using Python API

2015-01-30 Thread Roger André
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?

Thanks,

Roger
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Setting encoding using Python API

2015-01-30 Thread Even Rouault
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
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Setting encoding using Python API

2015-01-30 Thread Roger André
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 
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
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Setting encoding using Python API

2015-01-30 Thread Even Rouault
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 
> 
> 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
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev