Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
 STBuffer (geography Data Type)
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
SQL Server 2008 Books Online (October 2009)
STBuffer (geography Data Type)

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

.STBuffer ( distance )
distance

Is a value of type float (double in the .NET Framework) specifying the distance from the geography instance around which to calculate the buffer.

SQL Server return type: geography

CLR return type: SqlGeography

STBuffer() calculates a buffer in the same manner as BufferWithTolerance, specifying tolerance = distance * .001 and relative = false.

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

The following example creates a LineString geography instance. It then uses STBuffer() to return the region within 1 meter of the instance.

DECLARE @g geography;
SET @g = geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326);
SELECT @g.STBuffer(1).ToString();
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker