This project is read-only.

Remove Holes from a polygon

Nov 3, 2011 at 3:45 PM

Any ideas on how to remove holes from a multipolygon geometry?

Nov 4, 2011 at 8:52 PM

Hello agelos,

in NetTopologySuite it'd be:

var shell = polyogn.ExteriorRing;
var newPolygon = polygon.Factory.CreatePolyon(shell, null);

I assume its simialr in DotSpatial.Topology;

Hth FObermaier

Nov 7, 2011 at 2:22 PM

Thank you FObermaier

As soon as I asked I tested the same code and It works.Then i saw your answer.