Export (0) Print
Expand All
Expand Minimize

SqlGeometry.STIntersection Method

Returns an object that represents the points where a SqlGeometry instance intersects another SqlGeometry instance.

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

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

Parameters

other
Type: Microsoft.SqlServer.Types.SqlGeometry
The SqlGeometry instance to compare with the instance on which STIntersection is being invoked, to determine where they intersect.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry object containing the points where the calling SqlGeometry instance intersects the specified SqlGeometry.

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

Community Additions

ADD
Show:
© 2014 Microsoft