Patrick,
Thanks for your post!
I am not very clear about your third step “Populate this column” doing, following is some guide code you can take a reference:
ShapeFileFeatureSource featureSource = new ShapeFileFeatureSource(shapeFileName, ShapeFileReadWriteMode.ReadWrite);
featureSource.Open();
featureSource.BeginTransaction();
featureSource.AddColumnString("AddedFieldName", 10);
TransactionResult result = featureSource.CommitTransaction();
if (result.TotalFailureCount > 0)
{
throw new InvalidOperationException("Some operation failed!");
}
Collection<DbfColumn> addedColumns = featureSource.GetDbfColumns();
featureSource.Close();
If you have any more questions just do not hesitate to let me know.
Thanks.
Yale