[gdal-dev] field name in ESRI file
Oz Nahum
nahumoz at gmail.com
Wed Mar 24 11:05:57 EDT 2010
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(15)
dst_layer.CreateField(field_LUC)
Yet, when I examine the output file the attribute table contains a field
called "LAND USE C",
so 3 characters are missing.
Would be happy to know what am I doing wrong. Thank you very much,
--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen
---
Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100324/69d4fe18/attachment.html
More information about the gdal-dev
mailing list