Opened 16 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)

shpDuplicateColumns.patch (2.0 KB ) - added by trevorwekel 13 years ago.
Patch for duplicate column names

Download all attachments as: .zip

Change History (3)

comment:1 by gregboone, 13 years ago

Owner: changed from gregboone to danstoica

by trevorwekel, 13 years ago

Attachment: shpDuplicateColumns.patch added

Patch for duplicate column names

comment:2 by trevorwekel, 13 years ago

Cc: trevorwekel 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.

Note: See TracTickets for help on using tickets.