Error on duplicate attributes

Dec 1, 2006 at 12:13 AM
From the online maps available through the shapefiles "Country Boundaries 3.shp" you download (selecting country areas) have attribute "AREA" duplicated, and with different precission values.

I've modified CreateBaseTable() method from DaseReader.cs, but guess in a provisional solution.

private void CreateBaseTable(){
//si hay 2 columnas con el mismo nombre salta excepcion.
baseTable = new SharpMap.Data.FeatureDataTable();

foreach (DbaseField dbf in DbaseColumns)
if (!baseTable.Columns.Contains(dbf.ColumnName))
baseTable.Columns.Add(dbf.ColumnName, dbf.DataType);
Feb 17, 2007 at 5:11 AM
I don't think it's just country boundaries.

Out of interst it wasn't a problem in 0.8.

- Mike