Skip to main content

Pairwise Polygon Neighbors (Analysis Tools)

Summary

Creates a table with statistics based on polygon contiguity (overlaps, coincident edges, or nodes).

Learn more about how the Polygon Neighbors and Pairwise Polygon Neighbors tools work

Illustration

Pairwise Polygon Neighbors tool illustration

A diagram of a source polygon and its neighbor polygons is shown.

Usage

  • The tool analyzes polygon contiguity, summarizing the following between source polygons and neighbor polygons:

    • The area of overlaps (overlapping neighbors—optional)

    • The length of coincident edges (edge neighbors)

    • The number of times boundaries cross or touch at a point (node neighbors)

    The summary information is written to an output table. A source polygon may have one or more neighbor polygons; a neighbor polygon is spatially related with the source polygon in at least one of the ways described above.

  • Only first-order contiguity is analyzed and reported by the tool. Relationships beyond that are not examined, that is, neighbors of neighbors (second-order contiguity) are not examined.

  • The Report By Fields parameter is used to identify unique polygons or polygon groups and report their neighboring information by the polygons or polygon groups. To find the neighbors of each individual polygon in the input, specify one or more input fields that result in a unique value or set of values (in the case of multiple fields) for every polygon.

    If the specified fields identify unique polygon groups, the neighboring information is summarized and reported by the groups.

    See How Polygon Neighbors and Pairwise Polygon Neighbors works for details on the use of this parameter.

  • You can use the Include area overlaps parameter to analyze overlapping area relationships. When Include area overlaps is checked, the output table will contain an AREA field that stores the area of overlap for the overlapping neighbor being analyzed. If no overlap is found, the AREA field value is 0.

    Tip:

    Calculating overlapping area relationships is a high-resource operation, and performance may be slower than determining coincident edge and node neighbor relationships. If you know that the data has no overlapping features or you are not interested in analyzing overlapping neighbors, ensure that the Include area overlaps parameter is not checked.

    Caution:

    The Include area overlaps parameter must be checked to obtain records for neighbors that are completely contained by a source polygon. If the Include area overlaps parameter is not checked, the output table will not contain records for neighbors that are completely contained in a source polygon.

  • There is no entry in the output table for features that are not neighbors.

  • The Include both sides of neighbor relationship parameter is used to control the relationships included in the output. To report all contiguity relationships, including reciprocal relationships, check Include both sides of neighbor relationship. For example, if OID1 is a neighbor of OID2, an entry is written to the output table for OID1 having a neighbor OID2 and for OID2 having a neighbor OID1. If you only want the first side of the relationship, uncheck Include both sides of neighbor relationship. Using the example above but with Include both sides of neighbor relationship unchecked, only the entry for OID1 having a neighbor OID2 will be included in the output table.

  • The Output Linear Units parameter specifies the units that will be used for shared boundary lengths between neighbors. The default is to use the same units as defined by the input feature coordinate system.

  • The Output Area Units parameter is only used when the Include area overlaps parameter is checked. When Include area overlaps is checked, the units used to calculate the area overlap of neighbors are specified in the Output Area Units parameter. The default is to use the same units as defined by the input feature's coordinate system.

  • The Output Table parameter value can be a file geodatabase table or a .dbf table.

  • For each field specified in the Report By Fields parameter, the output table will contain two fields using the following naming convention: src_<field> and nbr_<field>. The fields represent the source and neighbor field values from the input.

    The output table will also contain the following fields:

    • AREA—This field stores the total overlapping area between a source polygon and a neighbor polygon (overlapping neighbors). This field is included in the output table only when the Include area overlaps parameter is checked.

    • LENGTH—This field stores the total length of coincident edges between a source polygon and a neighbor polygon.

    • NODE_COUNT—This field stores the number of times a source polygon and a neighbor polygon cross or touch at a point.

  • If there is a selection set on the input features, only selected features will be analyzed.

Parameters

Label Explanation Data type

Input Features

The input polygon features.

Feature Layer

Output Table

The output table.

Table

Report By Fields

(Optional)

The input attribute field or fields that will be used to identify unique polygons or polygon groups and represent them in the output.

Field

Include area overlaps

(Optional)

Specifies whether overlapping area relationships will be analyzed and included in the output.

  • CheckedOverlapping area relationships will be analyzed and included in the output.

  • UncheckedOverlapping area relationships will not be analyzed or included in the output. This is the default.

Boolean

Include both sides of neighbor relationship

(Optional)

Specifies whether both sides of neighbor relationships will be included in the output.

  • CheckedFor a pair of neighboring polygons, both the neighboring information of one polygon being the source and the other being the neighbor and the reciprocal relationship will be included. This is the default.

  • UncheckedFor a pair of neighboring polygons, only the neighboring information of one polygon being the source and the other being the neighbor will be included. The reciprocal relationship will not be included.

Boolean

XY Tolerance

(Optional)

The minimum distance between coordinates before they will be considered equal. By default, this is the x,y tolerance of the input features.

Caution:

Changing this parameter's value may cause failure or unexpected results. It is recommended that you do not modify this parameter. It has been removed from view on the tool dialog box. By default, the input feature class's spatial reference x,y tolerance property is used.

Linear Unit

Output Linear Units

(Optional)

Specifies the units that will be used to report the total length of the coincident edge between neighboring polygons. The default is the input feature units.

  • UnknownThe length unit will be unknown.

  • KilometersThe length unit will be kilometers.

  • MetersThe length unit will be meters.

  • DecimetersThe length unit will be decimeters.

  • CentimetersThe length unit will be centimeters.

  • MillimetersThe length unit will be millimeters.

  • Statute MilesThe length unit will be statute miles.

  • International Nautical MilesThe length unit will be international nautical miles.

  • International YardsThe length unit will be international yards.

  • International FeetThe length unit will be international feet.

  • International InchesThe length unit will be international inches.

  • US Survey MilesThe length unit will be US survey miles.

  • US Survey Nautical MilesThe length unit will be US survey nautical miles.

  • US Survey YardsThe length unit will be US survey yards.

  • US Survey FeetThe length unit will be US survey feet.

  • US Survey InchesThe length unit will be US survey inches.

  • Decimal DegreesThe length unit will be decimal degrees.

  • PointsThe length unit will be points.

String

Output Area Units

(Optional)

Specifies the units that will be used to report the area overlap of neighboring polygons. The default is the input feature units. This parameter is only active when the Include area overlaps parameter is checked.

  • UnknownThe area unit will be unknown.

  • Square KilometersThe area unit will be square kilometers.

  • Square MetersThe area unit will be square meters.

  • Square DecimetersThe area unit will be square decimeters.

  • Square CentimetersThe area unit will be square centimeters.

  • Square MillimetersThe area unit will be square millimeters.

  • Square Statute MilesThe area unit will be square statute miles.

  • Square International Nautical MilesThe area unit will be square international nautical miles.

  • Square International YardsThe area unit will be square international yards.

  • Square International FeetThe area unit will be square international feet.

  • Square International InchesThe area unit will be square international inches.

  • Square US Survey MilesThe area unit will be square US survey miles.

  • Square US Survey Nautical MilesThe area unit will be square US survey nautical miles.

  • Square US Survey YardsThe area unit will be square US survey yards.

  • Square US Survey FeetThe area unit will be square US survey feet.

  • Square US Survey InchesThe area unit will be square US survey inches.

  • US Survey AcresThe area unit will be US survey acres.

  • HectaresThe area unit will be hectares.

  • AcresThe area unit will be international acres.

  • AresThe area unit will be ares.

String

Use maximum precision

(Optional)

Specifies the level of precision that will be used. Check this parameter when you want the tool to apply a level of accuracy that is greater than the default for the input spatial reference when determining point output.

  • CheckedMaximum precision will be used.

  • UncheckedThe precision of the first input feature class will be used. This is the default.

Boolean

Environments

Auto Commit, Maintain fully qualified field names, Default Output Z Value, M Resolution, M Tolerance, Output CONFIG Keyword, Output M Domain, Output XY Domain, Output Z Domain, Output Coordinate System, Geographic Transformations, Extent, Output has M values, Output has Z values, XY Resolution, XY Tolerance, Z Resolution, Z Tolerance, Parallel Processing Factor, Maintain Curve Segments, Curve Processing Method, Transfer Geodatabase Field Properties

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes