Select By Location: graphic examples

This topic covers examples and expected results of the various Relationship options available in the Select Layer By Location geoprocessing tool as well as the Spatial_Join geoprocessing tool.

The WITHIN_A_DISTANCE spatial relationship and 3D spatial relationship operators such as INTERSECT_3D and WITHIN_A_DISTANCE_3D are not included in these graphics. For details on 3D relationships, see Select By Location 3D relationships.

The Select By Location dialog box found in the Selection menu in ArcMap, ArcScene, and ArcGlobe do not use the exact same term as the geoprocessing tool for describing the relationship. The table below contains the terminology mapping.

Geoprocessing tool

Selection\Select By Location

INTERSECT

Target layer features intersect the Source layer feature.

INTERSECT_3D

Target layer features intersect (3d) the Source layer feature.

WITHIN_A_DISTANCE

Target layer features are within a distance of the Source layer feature.

WITHIN_A_DISTANCE_3D

Target layer features are within a distance of (3d) the Source layer feature.

CONTAINS

Target layer features contains the Source layer feature.

COMPLETELY_CONTAINS

Target layer features completely contains the Source layer feature.

CONTAINS_CLEMENTINI

Target layer features contains (Clementini) the Source layer feature.

WITHIN

Target layer features are within the Source layer feature.

COMPLETELY_WITHIN

Target layer features are completely within the Source layer feature.

WITHIN_CLEMENTINI

Target layer features are within (Clementini) the Source layer feature.

ARE_IDENTICAL_TO

Target layer features are identical to the Source layer feature.

BOUNDARY_TOUCHES

Target layer features touch the boundary of the Source layer feature.

SHARE_A_LINE_SEGMENT_WITH

Target layer features share a line segment with the Source layer feature.

CROSSED_BY_THE_OUTLINE_OF

Target layer features are crossed by the outline of the Source layer feature.

HAVE_THEIR_CENTER_IN

Target layer features have their centroid in the Source layer feature.

All details that follow are written using the terminology of the Select Layer By Location tool. However, these details also apply to the Spatial Join tool. The parameter names differ between the tools as follows:

Clementini spatial relationships

WITHIN_CLEMENTINI and CONTAINS_CLEMENTINI refers to the within and contains spatial relationship as defined in the following paper: Clementini, Eliseo, Paolino Di Felice, and Peter van Oosterom, "A Small Set of Formal Topological Relationships Suitable for End-User Interaction," Proceedings of the Third International Symposium on Advances in Spatial Databases, 277–295, June 23–25, 1993.

Contrast of the three contains spatial relationships

Definition of boundary: For lines, the boundary is the two endpoints; for polygons, the boundary is the edge.

Contrast of the three within spatial relationships

Legend for graphics

For all the examples below, the following legend applies:

The graphics are labeled A, B, C, and so on. Each relationship (INTERSECT, CONTAINS, and so on) that is valid for that combination of geometries is listed in the left column of the table. The geometric cases that would be selected for that relationship are listed in the right column of the table.

Select point using point

Select point using point
Select point using point

INTERSECT

A

CONTAINS

A

CONTAINS_CLEMENTINI

A

WITHIN

A

WITHIN_CLEMENTINI

A

ARE_IDENTICAL_TO

A

HAVE_THEIR_CENTER_IN

A

Select point using point table

Select point using multipoint

Select point using multipoint
Select point using multipoint

INTERSECT

A, C

CONTAINS

A

CONTAINS_CLEMENTINI

A

WITHIN

A, C

WITHIN_CLEMENTINI

A, C

ARE_IDENTICAL_TO

A

HAVE_THEIR_CENTER_IN

A, C

Select point using multipoint table

Select point using line

Select point using line
Select point using line

INTERSECT

A, C

WITHIN

A, C

COMPLETELY_WITHIN

A

WITHIN_CLEMENTINI

A

HAVE_THEIR_CENTER_IN

A, C

Select point using line table

Select point using polygon

Select point using polygon
Select point using polygon

INTERSECT

A, C

WITHIN

A, C

COMPLETELY_WITHIN

A

WITHIN_CLEMENTINI

A

HAVE_THEIR_CENTER_IN

A, C

Select point using polygon table

Select multipoint using point

Select multipoint using point
Select multipoint using point

INTERSECT

A, C

CONTAINS

A, C

CONTAINS_CLEMENTINI

A, C

WITHIN

A

WITHIN_CLEMENTINI

A

ARE_IDENTICAL_TO

A

HAVE_THEIR_CENTER_IN

A, D

Select multipoint using point table

Select multipoint using multipoint

Select multipoint using multipoint
Select multipoint using multipoint

INTERSECT

A, C, E, F

CONTAINS

A, F

CONTAINS_CLEMENTINI

A, F

WITHIN

A, C

WITHIN_CLEMENTINI

A, C

ARE_IDENTICAL_TO

A

HAVE_THEIR_CENTER_IN

A, D

Select multipoint using multipoint table

Select multipoint using line

Select multipoint using line
Select multipoint using line

INTERSECT

A, C, E, F

WITHIN

A, C, E

COMPLETELY_WITHIN

A

WITHIN_CLEMENTINI

A, E

HAVE_THEIR_CENTER_IN

A, D, E

Select multipoint using line table

Select multipoint using polygon

Select multipoint using polygon
Select multipoint using polygon

INTERSECT

A, C, D, E, F

WITHIN

A, C, D, E

COMPLETELY_WITHIN

A

WITHIN_CLEMENTINI

A, D, E

HAVE_THEIR_CENTER_IN

A, B, C, E, F

Select multipoint using polygon table

Select line using point

Select line using point
Select line using point

INTERSECT

A, C, D

CONTAINS

A, C, D

COMPLETELY_CONTAINS

A, D

CONTAINS_CLEMENTINI

A, D

HAVE_THEIR_CENTER_IN

D

Select line using point table

Select line using multipoint

Select line using multipoint
Select line using multipoint

INTERSECT

A, C, D, E

CONTAINS

A, C, E

COMPLETELY_CONTAINS

A

CONTAINS_CLEMENTINI

A, E

HAVE_THEIR_CENTER_IN

D

Select line using multipoint table

Select line using line

Select line using line
Select line using line

INTERSECT

A, C, D, E, F, G, H, I, J

CONTAINS

G, H

COMPLETELY_CONTAINS

G

CONTAINS_CLEMENTINI

G, H

WITHIN

F, H

COMPLETELY_WITHIN

F

WITHIN_CLEMENTINI

F, H

ARE_IDENTICAL_TO

H

BOUNDARY_TOUCHES

C, E

Select line using line table

Select line using polygon

Select line using polygon
Select line using polygon

INTERSECT

A, C, D, E, F, G, H, I, J, K, L, M, N, O

WITHIN

A, D, G, H, I, O

COMPLETELY_WITHIN

A

WITHIN_CLEMENTINI

A, D, G, H, I

BOUNDARY_TOUCHES

D, F, G, H, I, K, L, M, N, O

SHARE_A_LINE_SEGMENT_WITH

G, I, J, K, M, O

CROSSED_BY_THE_OUTLINE_OF

C, E, H, L, N

HAVE_THEIR_CENTER_IN

A, C, D, E, G, H, I, J, O

Select line using polygon table

Select polygon using point

Select polygon using point
Select polygon using point

INTERSECT

A, B

CONTAINS

A, B

COMPLETELY_CONTAINS

A

CONTAINS_CLEMENTINI

A

HAVE_THEIR_CENTER_IN

A, D

Select polygon using point table

Select polygon using multipoint

Select polygon using multipoint
Select polygon using multipoint

INTERSECT

A, B, C, E

CONTAINS

A, B, E

COMPLETELY_CONTAINS

A

CONTAINS_CLEMENTINI

A, B

HAVE_THEIR_CENTER_IN

A, D

Select polygon using multipoint table

Select polygon using line

Select polygon using line
Select polygon using line

INTERSECT

A, C, D, E, F, G, H, I, J, K, L, M, N, O

CONTAINS

A, D, G, H, I, O

COMPLETELY_CONTAINS

A

CONTAINS_CLEMENTINI

A, D, G, H, I

BOUNDARY_TOUCHES

D, F, G, H, I, K, L, M, N, O

SHARE_A_LINE_SEGMENT_WITH

G, I, J, K, M, O

CROSSED_BY_THE_OUTLINE_OF

C, E, H, L, N

HAVE_THEIR_CENTER_IN

E, I, L

Select polygon using line table

Select polygon using polygon

Select polygon using polygon
Select polygon using polygon

INTERSECT

A, C, D, E, F, G, H, I, J, K, M

CONTAINS

C, E, H, M

COMPLETELY_CONTAINS

C

CONTAINS_CLEMENTINI

C, E, H, M

WITHIN

F, G, H, M

COMPLETELY_WITHIN

F

WITHIN_CLEMENTINI

F, G, H, M

ARE_IDENTICAL_TO

H, M

BOUNDARY_TOUCHES

D, E, G, H, I, J, M

SHARE_A_LINE_SEGMENT_WITH

D, H, I, M

CROSSED_BY_THE_OUTLINE_OF

A, E, G, J, K

HAVE_THEIR_CENTER_IN

C, E, F, G, H, K, L

Select polygon using polygon table

Related Topics

5/7/2015