SqlGeometry.STTouches Method (SqlGeometry)

 

Determines whether the specified SqlGeometry touches the current SqlGeometry.

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STTouches(
	SqlGeometry other
)

Parameters

other
Type: Microsoft.SqlServer.Types.SqlGeometry

The SqlGeometry instance to compare to the current SqlGeometry.

Return Value

Type: System.Data.SqlTypes.SqlBoolean

Returns true if a SqlGeometry instance spatially touches another SqlGeometry instance. Returns false if it does not.

Two SqlGeometry instances touch if their point sets intersect, but their interiors do not intersect.

This method always returns null if the spatial reference IDs (SRIDs) of the SqlGeometry instances do not match.

Return to top
Show: