This change allow writing shapefiles containing null attributes. However, it doesn't work when all features have a null value. In this case the field type cannot be detected correctly. To solve this, the AttributesTable needs to be extended to store attribute types along with attribute values, so that AttributesTable.GetType() returns property attribute type instead of default typeof(object).
This change allow writing shapefiles containing null attributes. However, it doesn't work when all features have a null value. In this case the field type cannot be detected correctly. To solve this, the
AttributesTable
needs to be extended to store attribute types along with attribute values, so thatAttributesTable.GetType()
returns property attribute type instead of defaulttypeof(object)
.See also a sample code that demonstrates how to receive attribute type from CLR type.