This document is archived and information here might be outdated. Recommended version. |
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*
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.
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.