Select to view content in your preferred language

Editing holes in a polygon

2279
4
Jump to solution
04-09-2021 01:59 PM
WarrenMedernach
Frequent Contributor

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 Esteemed 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

4 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 Esteemed 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
Frequent Contributor

Thanks Josh, that worked perfectly!

MohamedElHadary
New Contributor

Hi, is there a way to produce the opposite of this process? I want to create small cuts to open the holes in a shapefile, while the cuts should be contiguous without affecting the main shape and size of the polygons. The goal is not to have any true holes in a polygon to avoid issues when importing the shapefiles into other softwares that does not understand true holes in the polygon and fills and overlap any polygons that may be in the hole.

0 Kudos