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


IRelationalOperator.Touches Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

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,
  VARIANT_BOOL* Touches
);
[C++]

Parameters other
other is a parameter of type IGeometry Touches [out, retval] Touches is a parameter of type VARIANT_BOOL

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