[gdal-dev] StringList and Esri Shapefile
Even Rouault
even.rouault at spatialys.com
Mon Oct 13 03:58:02 PDT 2014
On Monday 13 October 2014 12:47:45 Martin Landa wrote:
> Hi,
>
> 2014-10-13 10:41 GMT+02:00 Even Rouault <even.rouault at spatialys.com>:
>
> [...]
>
> > If you use ogr2ogr, you could use the "-fieldTypeToString StringList"
> > option to ask for StringList fields to be converted to String.
>
> ah, ok, I overlooked this option. Is it possible also from Python API?
Basically it is a matter of declaring a ogr.OFTString field in the target layer
definition. dstFeature.SetFrom(srcFeature) will do the translation.
> Thanks, Martin
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list