2

I had to create boundary of raster layer, so I used raster to polygon to get the boundary. But the boundary has many holes based on the original raster which I want to get rid of as I only need the outer-boundary or extent for my analysis.

I have considered creating a new polygon and snapping the edge to this layer but I think there is a simpler way to do this?

Image below - referring to purple boundary

Only want purple outer boundary - not these smaller holes

attributes

4
  • Can you not just select the one boundary polyline/polygon that you need and export it as a shapefile or whatever? – Jon Jul 30 '20 at 14:52
  • there is only one polygon and it encompasses all the holes in the layer. – rspatialqs Jul 30 '20 at 15:02
  • 2
    Search ArcGIS help for eliminate – Jeffrey Evans Jul 30 '20 at 20:14
  • With one polygon I would just select it, then use the vertex minus tool to remove all the vertices inside the outer boundary using several selection boxes and deletes. It isn't elegant but it's simple. – johns Aug 5 '20 at 12:44
2

A simply way I remove holes from a polygon is to:

1] Go into edit mode and select the polygon

2] Click on modify button

3] Click on Edit vertices so vertices show up as green dots

4] In the modify panel your outer ring should be part 1, all holes are parts 2+.

5] Simply selecting a vertex will confirm this for you. Look for the flash on the screen.

6] Select all vertices in all others parts and click on delete (red cross)

Screen shot

If you have millions of polygons with millions of holes (which you don't actually say) then a python solution would be a better solution. Just search this forum.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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