AnsweredAssumed Answered

How to explode multipart polygon but retain donut shapes

Question asked by paul.haakma on Aug 13, 2018
Latest reply on Aug 14, 2018 by paul.haakma

Using the ArcGIS JavaScript 3.2x API, what would be the most efficient way to explode/break apart a multi-part polygon, yet retain those shapes that have holes in them as a single polygon?

 

Obviously we could extract all the rings into individual polygons, but then the 'holes' become polygons, and the original 'donut' looses it's hole. 

 

We could step through every ring, check it's direction and test whether it's inside/outside of every other ring, but that seems over the top.

 

Any suggestions on the most efficient way to do it?

 

cheers

-Paul

Outcomes