SqlGeometry.BufferWithTolerance 方法 (Double, Double, Boolean)

 

返回一个表示所有点值的并集的几何对象,这些点与 SqlGeometry 实例之间的距离小于或等于指定值,允许存在指定的公差。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry BufferWithTolerance(
    double distance,
    double tolerance,
    bool relative
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlGeometry^ BufferWithTolerance(
    double distance,
    double tolerance,
    bool relative
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member BufferWithTolerance : 
        distance:float *
        tolerance:float *
        relative:bool -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function BufferWithTolerance (
    distance As Double,
    tolerance As Double,
    relative As Boolean
) As SqlGeometry

参数

  • tolerance
    Type: System.Double

    一个指定缓冲区距离的公差的 double 值。

    “公差”指的是理想的缓冲区距离与返回的线性近似段之间的最大偏差。

    例如,点的理想缓冲区距离为圆圈,但是这必须与多边形近似。 公差越小,多边形具有的点就越多,这将增加结果的复杂度,但可减少错误。

  • relative
    Type: System.Boolean

    一个 bool 指定公差值是相对值还是绝对值。 如果为 true,则公差为相对值并按公差参数与该实例的边界框的直径之间的乘积进行计算。 如果为 false,则公差为绝对值并且公差值为理想缓冲区距离与返回的线性近似段之间的绝对最大偏差。

返回值

Type: Microsoft.SqlServer.Types.SqlGeometry

一个 SqlGeometry 值,该值表示所有与调用 SqlGeometry 的距离小于或等于指定值的点的并集。

备注

负的缓冲区将删除 SqlGeometry 实例的给定距离的边界内的所有点。

另请参阅

SqlGeometry 类
Microsoft.SqlServer.Types 命名空间

返回页首