Export (0) Print
Expand All
Expand Minimize

SqlGeography.STIntersects Method

Determines whether the current SqlGeography instance intersects with the specified SqlGeography.

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

<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STIntersects ( _
	other As SqlGeography _
) As SqlBoolean
Dim instance As SqlGeography 
Dim other As SqlGeography 
Dim returnValue As SqlBoolean 

returnValue = instance.STIntersects(other)


Type: Microsoft.SqlServer.Types.SqlGeography
The SqlGeography instance to compare against the instance on which STIntersects is invoked.

Return Value

Type: SqlBoolean
A SqlBoolean value that indicates if the calling SqlGeography instance intersects another SqlGeography instance. Returns true if there is an intersection. Otherwise, false.

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

Community Additions

© 2014 Microsoft