Hello, I am working on a school project where I have taken a 10m DEM, derived aspect, reclassified, and converted to polygons (9 classes in a Gridcode field). I now need to select areas less than 1.0 acre in size (i can currently do this using python), and then merge these selected polygons with either the polygon surrounding or adjacent to. This is the step i am struggling with a script for. any direction wouold be greatly appreciated. Basically i need to remove polygons less than one acre and merge them in with the larger surrounding polygon. #arcpy #python
The name might not be intuitive, but what you want is the Eliminate tool. You can merge with neighboring polygons based on area or length of shared border. The Eliminate tool does require an advanced license, though.
As Neil points out, this process can be accomplished using Regiongroup, a query to select all zones that are less than your threshold size, set those to null, then use Nibble to fill in the void using values from the surrounding zones in a more-or-less equal fashion The specific link within Neil's link is here (... generalizing-zones-with-nibble ...)