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