-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
I haven't looked to see how hard this is. Every once in a while someone has the bad sense to give me a spreadsheet with duplicated columns. Where they'll have something like street, city, street, street, name.
I usually have 2 options to address this:
- Open up the file and correct the headers - It's usually a spreadsheet
- Instruct OGR to ignore the headers and give them dummy names like field1, field2 etc using
doing something like
CREATE SERVER svr_xlsx FOREIGN DATA WRAPPER ogr_fdw OPTIONS (datasource 'C:/fdw_data/dupe_columns.xlsx', format 'XLSX', config_options 'OGR_XLSX_HEADERS=DISABLE');
What would be really convenient is if there was an option like rename_dupe_columns that just tacks a number at the end of subsequent duplicate columns.
Usually these extra annoying columns are not even ones I want to load, as they are often users duplicating columns to have them beside another or who just got lazy with their header naming.
I'm not sure if that is a change that can be done here, or has to be tackled at the GDAL level. Thoughts?
Metadata
Metadata
Assignees
Labels
No labels