1

I used the dissolve boundaries tool dissolving by field value to group polygons by year of treatment. Now I have dissolved polygons with hundreds of holes that need to be removed (please see picture). I want to keep only the outer polygon boundaries.

A similar question was asked as Extracting outer boundary of polygon (current polygon merged to one row but layer has holes creating small polygon needing removal) using ArcGIS Pro, but solutions provided were useful for small edits.

Is there an automated solution for hundreds of edits?

Example of large polygon with smaller polygons (holes) to be removed

1

1 Answer 1

0

Run multipart to single part on your dataset. Start editing output of above and use field calculator to run this:

def outRing(shp):
 part=shp.getPart(0)
 pgon=arcpy.Polygon(part)
 return pgon
#-----
outRing( !Shape!)

on Shape field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.