The Spatial Join tool matches rows from the Join Features parameter value to the Target Features parameter value based on a spatial relationship. The output is written to a new output feature class. The spatial relationship is determined by the geometry types of the inputs as well as the Match Option parameter value.
The following table shows the valid spatial relationships for combinations of geometry types.
Note:
The relationships of the Intersect, Intersect 3D, Within a distance, Within a distance 3D, Within a distance geodesic, Closest, Closest geodesic, and Largest overlap types are not shown in the table, as these are valid for any combination of geometry type.
Spatial relationships by feature geometry types
Target Features | Join Features | Contains | Completely contains | Contains Clementini | Within | Completely within | Within Clementini | Are identical to | Boundary touches | Share a line segment with | Crossed by the outline of | Have their center in |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Point | Point | |||||||||||
Polyline | ||||||||||||
Polygon | ||||||||||||
Polyline | Point | |||||||||||
Polyline | ||||||||||||
Polygon | ||||||||||||
Polygon | Point | Y | ||||||||||
Polyline | ||||||||||||
Polygon |
Y