Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
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 SqlBoolean STIntersects(
	SqlGeography 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft