[gdal-dev] StringList and Esri Shapefile

Even Rouault even.rouault at spatialys.com
Mon Oct 13 01:41:13 PDT 2014


On Monday 13 October 2014 10:03:22 Martin Landa wrote:
> Hi,
> 
> it seems that StringList type is not supported by Esri Shapefile
> format. I am not sure how to solve this problem in the right way.
> 
> ERROR: Unable to read 20140930_OB_571041_UKSH.xml.gz: Can't create
> fields of type StringList on shapefile layers.
> 
> Probably the Esri Shapefile driver could convert such data to string
> automatically?

Hi Martin,

traditionnaly we avoid doing "lossy" conversions without explicit user 
permission.
If you use ogr2ogr, you could use the "-fieldTypeToString StringList" option to 
ask for StringList fields to be converted to String.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list