Compartir a través de


SqlGeometry.STBuffer Método

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.

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STBuffer ( _
    distance As Double _
) As SqlGeometry
'Uso
Dim instance As SqlGeometry 
Dim distance As Double 
Dim returnValue As SqlGeometry 

returnValue = instance.STBuffer(distance)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry STBuffer(
    double distance
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeometry^ STBuffer(
    double distance
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STBuffer : 
        distance:float -> SqlGeometry
public function STBuffer(
    distance : double
) : SqlGeometry

Parámetros

  • distance
    Tipo: System.Double
    A double that specifies the distance from the SqlGeometry instance around which to calculate the buffer.

Valor devuelto

Tipo: 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.

Comentarios

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.

Vea también

Referencia

SqlGeometry Clase

Espacio de nombres Microsoft.SqlServer.Types