This document is archived and information here might be outdated.  Recommended version.


IRelationalOperator.Touches Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IR > IRelationalOperator Interface > 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
);
[C++]
HRESULT Touches(
  IGeometry* other
);
[C++]
Parameters
other 

other is a parameter of type IGeometry*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

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