Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for field aliases to OGRFieldDefn, read alias in openfilegdb driver #2729

Merged
merged 4 commits into from
Jul 1, 2020

Conversation

nyalldawson
Copy link
Collaborator

This PR adds support for setting/retrieving field aliases to OGRFieldDefn. It also adds support for reading the embedded field alias information stored in .gdb tables (with the openfilegdb driver at least -- would likely be possible with the filegdb driver too, but i distinctly lack motivation to work on that one!).

It's possible other formats also have native alias support which would benefit from this, but I'm not personally aware of any...!

autotest/ogr/ogr_fgdb.py Outdated Show resolved Hide resolved
gdal/ogr/ogr_feature.h Outdated Show resolved Hide resolved
gdal/ogr/ogrfielddefn.cpp Outdated Show resolved Hide resolved
gdal/swig/include/ogr.i Outdated Show resolved Hide resolved
gdal/swig/include/ogr.i Outdated Show resolved Hide resolved
@jratike80
Copy link
Collaborator

I would have voted for "AlternativeName". I have also use cases in my mind when I probably would not rename fields by expanding but rather by using more compact names (INSPIRE schemas, database tables named after company wide naming conventions etc).

@nyalldawson
Copy link
Collaborator Author

All comments addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants