SqlGeometry.BufferWithTolerance 메서드

Returns a geometric object that represents the union of all point values whose distance from a SqlGeometry instance is less than or equal to a specified value, allowing for a specified tolerance.

네임스페이스:  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
    A double that specifies the distance from the SqlGeometry instance around which to calculate the buffer.
  • tolerance
    유형: System.Double
    A double that specifies the tolerance of the buffer distance.Tolerance refers to the maximum variation in the ideal buffer distance for the returned linear approximation.For example, the ideal buffer distance of a point is a circle, but this must be approximated by a polygon. The smaller the tolerance, the more points the polygon will have, which increases the complexity of the result, but decreases the error.
  • relative
    유형: System.Boolean
    A bool that specifies whether the tolerance value is relative or absolute. If true, then tolerance is relative and is calculated as the product of the tolerance parameter and the diameter of the bounding box of the instance. If false, tolerance is absolute and the tolerance value is the absolute maximum variation in the ideal buffer distance for the returned linear approximation.

반환 값

유형: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry value that represents the union of all points whose distance from the calling SqlGeometry is less than or equal to the specified values.

주의

A negative buffer removes all points within the given distance of the boundary of the SqlGeometry instance.

참고 항목

참조

SqlGeometry 클래스

Microsoft.SqlServer.Types 네임스페이스