Here's the note I've added to the bug:
I've been working on this bug and I found some polygon are converted by the NTS library to a Geometry collection instead of a polygon. Converting this back results in a NULL_SHAPE and the exception posted.
the count for resultLineList > 0 so resultGeom = ComputeGeometry(resultPointList, resultLineList, resultPolyList) has a line and a polygon and that is why a Geometry collection is created.
I don't understand why a line has been found. MapWindow thinks it is a polygon as it should.
Next I started buffering each polygon separately by selecting just one each time.
This sometimes resulted in a 'side location conflict' in MapWinGeoProc.NTS.Topology.GeometriesGraph.EdgeEndStar.PropagateSideLabels
If I move a point of the bad polygon using the shapefile editor and try again the shape is correctly buffered. So something is wrong with the shape and accidentally the shapefile editor is fixing it.
The problem seems to be with the NTS library and not with MapWindow. The shapefile is used fine with ArcGIS.
So if anyone has some more suggestions, please let me know.
Don't forget to read the new documentation: www.mapwindow.org/documentation/mapwingis4.8
Join us Google+: MapWindow GIS Google+ Community
Join the MapWindow Group on LinkedIn! LinkedIn - MapWindow Group
Download the latest beta installer at:
Follow me on Twitter MapWindow_nl to read when a new installer is published.
Release manager, configuration manager and
forum moderator of MapWindow GIS
Owner of MapWindow.nl - Support for
Dutch speaking users: www.mapwindow.nl
Everything I say or write is my personal opinion and
not the opinion of the company I work for.
View my profile on LinkedIn