DBF Merge doesn't add to MetaData


The DBFMerge method currently attempts to upload(merge) the dbf data into the shapefile's SpatialDataSet by using the Concat method on the SpatialDataSet. However, the Concat method of a dictionary returns an IEnumerable. Since MetaData.Properties is read only for the data set we need to Add() to the dictionary. This fixed the issue.
// Line 206 of ShapefileReader.cs
foreach (KeyValuePair<string, object> row in r)
    dataSet.Geometries[i].Metadata.Properties.Add(row.Key, row.Value);
I would create a quick patch but I'm not sure how to do that. I'll work on the patch in the near future when I read through the CodePlex docs.


rbrundritt wrote Apr 10, 2015 at 9:37 PM

Thanks. I've updated the code.