SqlGeography.CurveToLineWithTolerance Method (Double, Boolean)

 

Applies To: SQL Server 2016 Preview

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

Namespace:   Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeography CurveToLineWithTolerance(
    double tolerance,
    bool relative
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlGeography^ CurveToLineWithTolerance(
    double tolerance,
    bool relative
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member CurveToLineWithTolerance : 
        tolerance:float *
        relative:bool -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function CurveToLineWithTolerance (
    tolerance As Double,
    relative As Boolean
) As SqlGeography

Parameters

  • tolerance
    Type: System.Double

    The maximum error between the original circular arc segment and its linear approximation.

  • relative
    Type: 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.

Return Value

Type: Microsoft.SqlServer.Types.SqlGeography

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

See Also

SqlGeography Class
Microsoft.SqlServer.Types Namespace

Return to top