SqlGeometry インスタンスから各地点までの距離が指定した許容範囲内にある、すべての地点値の和集合を表すジオメトリック オブジェクトを返します。
名前空間: Microsoft.SqlServer.Types
アセンブリ: Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)
構文
'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function BufferWithTolerance ( _
distance As Double, _
tolerance As Double, _
relative As Boolean _
) As SqlGeometry
'使用
Dim instance As SqlGeometry
Dim distance As Double
Dim tolerance As Double
Dim relative As Boolean
Dim returnValue As SqlGeometry
returnValue = instance.BufferWithTolerance(distance, _
tolerance, relative)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeometry BufferWithTolerance(
double distance,
double tolerance,
bool relative
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeometry^ BufferWithTolerance(
double distance,
double tolerance,
bool relative
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member BufferWithTolerance :
distance:float *
tolerance:float *
relative:bool -> SqlGeometry
public function BufferWithTolerance(
distance : double,
tolerance : double,
relative : boolean
) : SqlGeometry
パラメーター
- distance
型: System.Double
バッファー計算の対象となる SqlGeometry インスタンスからの距離を指定する double です。
- tolerance
型: System.Double
バッファー距離の許容範囲を指定する double です。許容範囲とは、返された線形近似の理想的なバッファー距離の最大幅のことです。たとえば、ある地点の理想のバッファー距離は円ですが、多角形によって近似された形状になる必要があります。 許容範囲が小さいほど、多角形の頂点の数は多くなります。つまり、計算結果の複雑性が増しますが、元の図形との差が小さくなります。
- relative
型: System.Boolean
tolerance の値が相対値か絶対値かを指定する bool です。 true の場合、tolerance は相対値であり、tolerance パラメーターとインスタンスに外接する四角形の直径の積として計算されます。 false の場合、tolerance は絶対値です。tolerance 値は、理想的なバッファー距離と返される線形近似との差異の絶対最大値になります。
戻り値
型: Microsoft.SqlServer.Types.SqlGeometry
呼び出し元の SqlGeometry からの距離が指定した値以下となる、すべての地点の和集合を表す SqlGeometry 値です。
説明
バッファーに負の値を指定すると、SqlGeometry インスタンスの境界から、指定された距離の範囲内にある地点がすべて削除されます。