Editing holes in a polygon

845
3
Jump to solution
04-09-2021 01:59 PM
Labels (2)
WarrenMedernach
Occasional Contributor III

Looking for suggestions on editing a CAD converted dataset we've received. All of the polygons that contain holes in them (donut), the holes are connected with a line to the exterior polygon something like the image below. In other words, these are a single part, and not a multipart polygon.

WarrenMedernach_0-1618001399612.png

Is there a workflow/tool to easily update or fix these so they are a true multipart polygons?

I do understand that the following would work:

  • create new interior holes by re-tracing these holes
  • then deleting the vertices for these holes
  • and finally re-clip using the newly traced holes.

But that's not a very appealing thought for editing 1000's of these bad polygons.

Thanks for any tips/suggestions

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Frequent Contributor

Buffer the polygons by a tiny amount, say 0.1 feet. If those lines are contiguous, it'll "erase" them. And if the 0.1 feet mattered, then do a second buffer of the same amount, but negative.

Edit: adding images.

Original shapes:

jcarlson_0-1618005480808.png

0.1 ft buffer:

jcarlson_1-1618005498509.png

Hooray!

- Josh Carlson
Kendall County GIS

View solution in original post

3 Replies
DanLee
by Esri Regular Contributor
Esri Regular Contributor

Try this:

- Feature To Point with INSIDE option to produce "label points" that carry the original polygon attributes. Call it Label_pts.

- Polygon To Line on the polygons with default option; call the output Lines.

- Select Layer By Attributes to select from Lines with Left_FID = Right_FID; these are the interior lines. 

- Delete Features to delete the selected from Lines.

- Feature To Polygon using Lines and Label_pts, uncheck "Preserve attributes", to reconstruct polygon and retrieve the attributes.

jcarlson
MVP Frequent Contributor

Buffer the polygons by a tiny amount, say 0.1 feet. If those lines are contiguous, it'll "erase" them. And if the 0.1 feet mattered, then do a second buffer of the same amount, but negative.

Edit: adding images.

Original shapes:

jcarlson_0-1618005480808.png

0.1 ft buffer:

jcarlson_1-1618005498509.png

Hooray!

- Josh Carlson
Kendall County GIS
WarrenMedernach
Occasional Contributor III

Thanks Josh, that worked perfectly!