Split polygon with hole by multilines

Apr 20, 2012 at 4:14 AM
Edited Apr 20, 2012 at 4:18 AM

Hi all,

I'm trying to solve a particular problem in my project, involving splitting a polygon with hole in it. But Dotspatial doesn't support splitting a polygon using multilines.

Let's say we have a polygons X with a hole Y in it ( like a doughnut ). Now I have to split X using a (poly)line z, so the line z will cut the polygon at 4 points, for example :


A and D are on the outter border and B,C are on the inner border of X.


At this point, if I use ClipPolygonWithLine, it will automatically join B and C together, and perform a normal polygon split, which result in creating 2 adjacent polygons based on the polyline A-B-C-D, without a hole.

So I'm wondering is there a way to cut the polygon with multi-lines, or specifically, 2 lines in this example ? By doing so, I can split polygon X into 2 different concave polygon  X1 and X2.

Thank you very much