Re: [gdal-dev] field name in ESRI file

2010-03-24 Thread Eric Wolf
ESRI Shapefiles use the ancient DBF format for attribute data. DBFs restricts the length of field names. When I have to work with Shapefiles, I try to stick to 8-character field names and avoid spaces and special characters. -Eric -=--=---===---=--=-=--=---==---=--=-=- Eric B. Wolf

Re: [gdal-dev] field name in ESRI file

2010-03-24 Thread Oz Nahum
that shapefiles support dates. > > Best, > > Jason > > -Original Message- > From: gdal-dev-boun...@lists.osgeo.org [mailto: > gdal-dev-boun...@lists.osgeo.org] On Behalf Of Peter J Halls > Sent: Wednesday, March 24, 2010 11:15 AM > To: Oz Nahum > Cc: gdal-dev@lists.osg

RE: [gdal-dev] field name in ESRI file

2010-03-24 Thread Jason Roberts
ssage- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Peter J Halls Sent: Wednesday, March 24, 2010 11:15 AM To: Oz Nahum Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] field name in ESRI file Oz, shapefiles use the dBase IV forma

Re: [gdal-dev] field name in ESRI file

2010-03-24 Thread Peter J Halls
Oz, shapefiles use the dBase IV format .dbf file for attributes: this defines the maximum field name width to be 10 characters - 'LAND USE CODE' has 13. Also, space characters are not permitted - use underscore '_' instead. Whilst GDAL may create the field names as you have specified, othe

[gdal-dev] field name in ESRI file

2010-03-24 Thread Oz Nahum
Hello GDAL Devs, I encoutered a small problem, where I don't understand why field names in ESRI Shape files created by gdal, are truncated. Here is a code snippet: field_LUC = ogr.FieldDefn() field_LUC.SetName('LAND USE CODE') field_LUC.SetType(ogr.OFTInteger) field_LUC.SetWidth(1