ArcGIS Enterprise SDK
IRelationalOperator.Touches Method
ArcGIS Developer Help

IRelationalOperator.Touches Method

Indicates if the boundaries of the geometries intersect.

[Visual Basic .NET]
Public Function Touches ( _
    ByVal other As IGeometry _
) As Boolean
[C#]
public bool Touches (
    IGeometry other
);

Description

Two geometries are said to touch when the intersection of the geometries is non-empty, but the intersection of their interiors is empty.  Touches is a Clementini operator. For example, a point touches a polyline only if the point is coincident with one of the polyline end points.

 

Touches examples. Only "true" relationships are showed in this picture.

Remarks

Only geometries that support the IRelationalOperator interface can be used as input geometries.

Touch does not apply for point/point comparison.

If either one of the two geometries is empty, the geometries are not touched.

 

See Also

IRelationalOperator Interface