[gdal-dev] Setting encoding using Python API

Even Rouault even.rouault at spatialys.com
Fri Jan 30 01:39:58 PST 2015


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


More information about the gdal-dev mailing list