SqlGeography.STLength 方法 ()

 

返回 SqlGeography 实例中元素的总长度或 GeometryCollection 内的 SqlGeography 实例的总长度。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlDouble STLength()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlDouble STLength()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STLength : unit -> SqlDouble
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function STLength As SqlDouble

返回值

Type: System.Data.SqlTypes.SqlDouble

一个包含总长度的 SqlDouble 值。

备注

如果 SqlGeography 实例闭合,其长度按围绕该实例的总长度进行计算; 任何多边形的长度为其周长,点的长度为 0。 通过计算的总长度的所有找到的 GeometryCollection 长度 SqlGeography 集合内包含的实例。

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间

返回页首