Get Adjacent Polygons

Running programmatically

Determines for each polygon of the dataset the adjacent polygons and stores the result in the attribute table as a comma delimited string.

Inputs:

Outputs:

Notes:

Example:

AdjPg

State Name ET Adj ET Count
Arizona California, Sonora, Nevada, NewMexico, BajaCalifornia, Utah 6
Colorado NewMexico, Utah, Wyoming, Kansas,Nebraska, Oklahoma 6
New Mexico Chihuahua, Sonora, Arizona, Colorado, Oklahoma, Texas 6
Utah Nevada, Arizona, Colorado, Wyoming, Idaho 5

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name PolygonAdjacency
<input dataset> A String representing the input layer. Must be of Polygon type.
<output dataset> A String - the full name of the output layer.
{Link Field} A Double representing the Generalization tolerance (in the units of the spatial reference of the input layer.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "PolygonAdjacency", "input dataset", "output dataset", "Link Field"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "PolygonAdjacency" "input dataset" "output dataset" "Link Field"
.NET using ETGWOutX.dll PolygonAdjacency(input dataset, output dataset, Link Field)
ArcPy arcpy.PolygonAdjacency(input dataset, output dataset, "Link Field")

Notes:

(Go to TOP)