[gdal-dev] StringList and Esri Shapefile
Even Rouault
even.rouault at spatialys.com
Mon Oct 13 08:11:21 PDT 2014
On Monday 13 October 2014 17:01:49 Martin Landa wrote:
> 2014-10-13 14:43 GMT+02:00 Martin Landa <landa.martin at gmail.com>:
> > ofeature = ogr.Feature(olayer.GetLayerDefn())
>
> the problem will be probably in the code above. Do I need to define
> types of affected attributes manually (StringList -> String)?
Yes that's what I meant with "it is a matter of declaring a ogr.OFTString field
in the target layer definition"
That's what is done in ogr2ogr.cpp or swig/python/samples/ogr2ogr.py
>
> Thanks, Martin
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list