Opened 17 years ago
Last modified 13 years ago
#336 new defect
shape files with duplicate column names don't work
Reported by: | andrewd | Owned by: | danstoica |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | SHP Provider | Version: | 3.2.0 |
Severity: | 2 | Keywords: | |
Cc: | trevorwekel | External ID: |
Description
If you try to open shape files that have duplicate column names, you'll get an error. Autodesk Mapguide Studio gives me a "Read Schema Failed" message. Autodesk's Map 2008 (which supposedly used FDO for importing shape files) says it's "Invalid Data". ESRI's ArcView opens it them just fine, as did prior versions of Autocad that did not use the FDO provider.
Attachments (1)
Change History (3)
comment:1 by , 14 years ago
Owner: | changed from | to
---|
by , 13 years ago
Attachment: | shpDuplicateColumns.patch added |
---|
comment:2 by , 13 years ago
Cc: | added |
---|
I have attached a patch which renames the columns as part of the read process if duplicate column names are detected. The column names are truncated and a numeric value is appended to the column name. If no duplicates are detected, the column names remain unchanged.
Patch for duplicate column names