[gdal-dev] join CSV to shapefile, column width question

Frank Warmerdam warmerdam at pobox.com
Tue Jan 8 14:31:46 EST 2008


keith lewis wrote:
> Hello,
> 
> I'm joining tabular data (csv) to a shapefile. The new String fields are 
> always 80 char wide. I tried to define the column width by creating a 
> .CSVT file in this manner.
> 
> "String (100)",String (100)"
> 
> However, this has no effect on the new columns that are joined to the 
> shapefile. The Shapefile specification allows String fields up to 255 
> char. How can I create String fields greater than 80 char? Thanks

Keith,

I would suggest you submit a bug report demonstrating the problem with setting
shapefile(dbf) field widths based on a .csvt file and I can look into it.
The approach seems reasonable.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list