Hi,
I'm trying to loop over the features in a feature class and split each mulit-part polygon into single-part polygons. I don't want to use any geoprocessing tools. The problem is that the code below gives me each polygon part, but without the holes. I want to split the multi-part polygons but keep any polygon holes. Any ideas?
Best regards,
Mikael
Solved! Go to Solution.
It is mostly there, you just need to do geomColl.AddGeometry on all of the interior rings of your original polygon. I am fairly certain that any interior rings not in your exterior ring will be ignored. However, if not, you might have to run an intersect first to see.
Good Luck
Brent
It is mostly there, you just need to do geomColl.AddGeometry on all of the interior rings of your original polygon. I am fairly certain that any interior rings not in your exterior ring will be ignored. However, if not, you might have to run an intersect first to see.
Good Luck
Brent
Hi Brent!
You are so right. It's worked like a charm to add the interior rings as well.
Many thanks!
/Mikael