NetTopologySuite / NetTopologySuite.IO.Esri

BSD 3-Clause "New" or "Revised" License
31 stars 16 forks source link

Allow writing shapefiles containing null attributes. #43

Closed KubaSzostak closed 2 weeks ago

KubaSzostak commented 4 months ago

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).

See also a sample code that demonstrates how to receive attribute type from CLR type.