Touches

Returns TRUE if one of the geometries’ boundaries intersects the other’s interior or boundary, without the interiors of the geometries intersecting. At least one geometry must be a linestring multilinestring, polygon or multipolygon.

 

JavaScript

 

Touches(

       otherGeometry)

 

C#

 

bool Touches(

       IGeometry otherGeometry)

 

C++

 

HRESULT Touches(

       IGeometry* otherGeometry,

       VARIANT_BOOL* pVal)

Parameters

otherGeometry

An IGeometry representing the geometry with which to compare the selected geometry.

Return Value

pVal

Returns TRUE if the two geometries touch.

Exceptions

See:  HRESULT Return Values for a list of possible values returned by the HRESULT.