SqlGeometry.STDifference Method (SqlGeometry)

 

Returns an object that represents the points from one SqlGeometry instance that do not lie within another SqlGeometry instance.

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

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

Parameters

other
Type: Microsoft.SqlServer.Types.SqlGeometry

The SqlGeometry instance indicating which points to remove from the instance on which STDifference is being invoked.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeometry

A SqlGeometry object that represents the unique points in the calling SqlGeometry.

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

Return to top
Show: