zhikrullah / pyshp

Automatically exported from code.google.com/p/pyshp
MIT License
0 stars 0 forks source link

Duplicate field names cause mismatch between list of field names and fields in records #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load the attached shapefile using the Reader class.
2. Count the number of fields in the Reader and then in any record.
3.

What is the expected output? What do you see instead?
This file contains two fields called "ASIA2000_2".  One of these fields gets 
dropped by the reader.  The ArcGIS "solution" to this problem is to change the 
name of the duplicate field.  Why it lets users create data with duplicate 
fields is beyond me.

What version of the product are you using? On what operating system?
1.1.4, on Mac OS 10.7.5

Please provide any additional information below.
The version of shapefile I am using is embedded in the Basemap library 
(http://matplotlib.org/basemap/).  It might be helpful if the author of that 
library is notified when this package is updated.

I hacked my own solution - basically doing the same thing that ArcGIS is doing. 
 I'd include that but I'm sure you can come up with something a little cleaner.

Original issue reported on code.google.com by mhearne...@gmail.com on 23 Jan 2013 at 11:11

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by jlawh...@geospatialpython.com on 2 May 2013 at 4:56