0

I'm using ArcGIS Pro 2.3.0 Basic.

I'm trying to eliminate holes in an polygon-layer within a certain extent by using ModelBuilder. The generalization-tool (Eliminate Polygon Parts) isn't licensed with Basic...

I'm trying my best but it doesn't work. Anyone have an idea of how to generate polygons within the existing ones to select them afterwards?

2

If you know how to use advanced field calculator within your model, this expression will help to locate polygons with holes.

This one:

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

will eliminate hole(s). If data stored in gdb, you need to start editing session.

Works on single part polygons only!

0

I would try using the Union tool, setting the 'gaps' parameter to false. But then the resulting polygons would need the attributes. In this case, I would see if using either the Spatial Join ot Dissolve tools would be best to populate the attributes of those 'gap' polygons.

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.