Add Field Alias Support for Feature Read/Write Operations
I'd like to propose adding support for field aliases when reading and writing features in GDB/MDB. Currently, field alias information is lost during processing.
Can you show some examples @AlanZ-Git ? I'm unfamiliar with field aliases. Does GDAL support them? By which API?
I am not sure if its a ArcGIS feature because I have been using ArcGIS and ArcGIS Pro since I start to work. I was using arcpy to operate vector and raster data. Sorry for not familiar about GDAL.
When a feature class is saved in gdb/mdb database, its fields class has the attribute name alias. If this feature was exported as a shapefile, it will lost field alias too.
Just a guess, this is possibly via OGR's GetAlternativeNameRef function (e.g. tested here). But I don't see any autotests that involve GDB with GetAlternativeNameRef, so I'm not sure if that support exits for these Esri formats.
Yes, FGDB field aliases are supported by OGR, e.g. setting using SetAlternativeName ogropenfilegdblayer_write.cpp & python example.