Поделиться через


Метод SqlGeography.CurveToLineWithTolerance

Returns a polygonal approximation of a SqlGeography instance that contains circular arc segments.

Пространство имен:  Microsoft.SqlServer.Types
Сборка:  Microsoft.SqlServer.Types (в Microsoft.SqlServer.Types.dll)

Синтаксис

'Декларация
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function CurveToLineWithTolerance ( _
    tolerance As Double, _
    relative As Boolean _
) As SqlGeography
'Применение
Dim instance As SqlGeography 
Dim tolerance As Double 
Dim relative As Boolean 
Dim returnValue As SqlGeography 

returnValue = instance.CurveToLineWithTolerance(tolerance, _
    relative)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeography CurveToLineWithTolerance(
    double tolerance,
    bool relative
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeography^ CurveToLineWithTolerance(
    double tolerance, 
    bool relative
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member CurveToLineWithTolerance : 
        tolerance:float * 
        relative:bool -> SqlGeography
public function CurveToLineWithTolerance(
    tolerance : double, 
    relative : boolean
) : SqlGeography

Параметры

  • tolerance
    Тип: System.Double
    The maximum error between the original circular arc segment and its linear approximation.
  • relative
    Тип: System.Boolean
    Specifies whether to use a relative maximum for the deviation. If false (0), an absolute maximum is set for the deviation that a linear approximate can have. If true (1), tolerance is calculated as a product of the tolerance parameter and the diameter of the bounding box for the spatial object.

Возвращаемое значение

Тип: Microsoft.SqlServer.Types.SqlGeography
A polygonal approximation of a SqlGeography instance that contains circular arc segments.

См. также

Справочник

SqlGeography Класс

Пространство имен Microsoft.SqlServer.Types