[gdal-dev] Normalized/laundered field names
adamgutonski
adamgutonski at protonmail.com
Fri May 13 10:11:55 PDT 2022
Hello,
I am attempting to create an ogr.OFTDateTime field named "date", within a file geodatabase table. However anytime a field definition is created with the name "date", once the layer tries to create the field, I get receive a warning:
Warning 6: Normalized/laundered field name: 'date' to 'date_'
Why does this field need to be normalized? Is there anyway to suppress this warning and retain the "date" string that is expected as the field name? Are there other field names besides date that will always be normalized?
Below is my code snippet:
field_defn = ogr.FieldDefn("date", ogr.OFTDateTime)
layer.CreateField(field_defn)
Thank you for your time as always!
Sincerely,
Adam Gutonski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220513/a6cc4c2e/attachment.htm>
More information about the gdal-dev
mailing list