Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlGeometry::STBuffer Method (Double)

 

Applies To: SQL Server 2016 Preview

Returns a geometric object that represents the union of all points whose distance from a SqlGeometry instance is less than or equal to a specified value.

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

public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlGeometry^ STBuffer(
	double distance
)

Parameters

distance
Type: System::Double

A double that specifies the distance from the SqlGeometry instance around which to calculate the buffer.

Return Value

Type: Microsoft.SqlServer.Types::SqlGeometry^

A SqlGeometry object that represents the union of all points whose distance from the calling SqlGeometry is less than or equal to the specified value.

STBuffer calculates a buffer in the same manner as BufferWithTolerance, that specifies tolerance = distance * .001 and relative = true.

A negative buffer removes all points within the given distance of the boundary of the SqlGeometry.

Return to top
Show:
© 2015 Microsoft