Thursday, 23 April 2015

advanced license level - Merging/dissolving all polygons adjacent to each other using ArcGIS Desktop?


I have a shapefile containing a lot of polygons, that share boundaries or just single vertices, for diagonal polygons.


I'm trying to merge/combine all the polygons that share a boundary.


I've tried using Dissolve followed by a Multipart to Singlepart, however this splits up polygons that share a vertice (see purple polygons). Also the top left part of the purple polygons aren't merged either.


Is there a way to make it so, if a polygon touches boundary with another polygon (using D8 method, so all 8 directions from a cell), it should be merged.


enter image description here



Answer



Spatial Analyst extension would again offer a solution: use the “Region Group” command with the “EIGHT” neighbourhood connectivity parameter to assign unique IDs this each raster zone, then convert back to polygons if needed.


This workflow would continue in line with your previous question Use buffer from IDW 3D Analyst for flood spread



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...