If you have the ArcInfo license, you can try the Generate Near Table tool:
- Specify a small search distance (e.g. 1 meter/feet) if you are only interested polygons that share boundary with the central polygon. All the neighboring polygons should get 0 for NEAR_DIST.
- Uncheck "Find only closest feature (optional)", so that you are not only getting one of the neighbors.
Then you use the Join Field tool to join the near table by the NEAR_FID field with your polygon feature class by the FID field to get the SUM_OF_Length_field into the near table.
Finally you can use Frequency on the IN_FID field of the near table with a SUM of the field that carries the sum_of_length values.
I didn't have time to test this all the way. Hope it works for you or gives you some lead.
Regards,
Hope you know some Python.
There are a few ways of determning adjacency in ArcGIS that I use:
1. Use a SelectByLocation to select polygons that touch/intersecct/share line segment with/etc.
2. Use the PolygonToLine tool. The output lines will have fields indicating the OBJECTID of the polygon to the right and left of the arc... I mean line (just like a good ole' coverage .aat)!
... The Generate near table used some hours (and I do not understand why) do calculate neighboring polygons,
I do not know any Python so I tried Dan's suggestion. But thanks any how=)
Hi Parmer, I would like to investigate the slow-ness of Generate Near Table - could you tell me the version of ArcGIS you are working with?
Nobbir Ahmed
ESRI Geoprocessing Team
I guess you do not need it now.