# SqlGeometry.Reduce 메서드

Returns an approximation of the given SqlGeometry instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

## 구문

``````‘선언
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function Reduce ( _
tolerance As Double _
) As SqlGeometry
‘사용 방법
Dim instance As SqlGeometry
Dim tolerance As Double
Dim returnValue As SqlGeometry

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

#### 매개 변수

• tolerance
유형: System.Double
A double that represents the tolerance to input to the Douglas-Peucker algorithm.

#### 반환 값

유형: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry object that represents an approximation of the calling SqlGeometry within the specified tolerance.

## 주의

For collection types, this algorithm operates independently on each SqlGeometry contained in the instance.

This algorithm does not modify Point instances.

On LineString instances, the Douglas-Peucker algorithm retains the original start and end points of the instance, and iteratively adds back the point from the original instance that most deviates from the result until no point deviates more than the given tolerance.

On Polygon instances, the Douglas-Peucker algorithm is applied independently to each ring. The method will produce a FormatException if the returned Polygon instance is not valid; for example, an invalid MultiPolygon instance is created if Reduce is applied to simplify each ring in the instance and the resulting rings overlap.

## 참고 항목

#### 참조

SqlGeometry 클래스

Microsoft.SqlServer.Types 네임스페이스