
I was running into problems using MsSql.CreateDataTable(). Turns out the shapefile I was loading had at least one shape with 0 parts. I tracked things down to ShapeFile.cs, Ln 723 where ShapeFile.ReadGeometry() returns null when a shape with 0 parts is
encountered. The null shape in turn kills MsSql.CreateDataTable(). I've added a workaround with this at MsSql.cs, Ln 543:
// Skip NULL shapes.
if (feature.Geometry == null)
continue;
But I'm not sure if this is a bug or a feature so I'll leave it to the community to decide.
Thanks.
Abe



Thanks for posting this.
I've checked in an updated MsSql.CreateDataTable() to the repository.
Let me know if it solves your problem.

