STBuffer (geometry)#
Returns a geometric object that represents the union of all points whose distance from a geometry instance is less than or equal to a specified value.
Syntax#
.STBuffer ()
Arguments#
distance
Is a value of type float specifying the distance from the geometry instance around which to calculate the buffer.
Return type#
geometry
Remarks#
STBuffer() calculates a buffer like BufferWithTolerance, specifying tolerance = distance * .001 and relative = false.
When distance > 0 then either a Polygon or MultiPolygon instance is returned.
Example#
Calling STBuffer() with parameter_value < 0 on one dimensional geometry instance.
DECLARE @g geometry= 'LINESTRING(3 4, 8 11)';
SELECT @g.STBuffer(-1).ToString();