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


Метод SqlGeography.STLength

Returns the total length of the elements in a SqlGeography instance or the SqlGeography instances within a GeometryCollection.

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

Синтаксис

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

returnValue = instance.STLength()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlDouble STLength()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlDouble STLength()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STLength : unit -> SqlDouble
public function STLength() : SqlDouble

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

Тип: System.Data.SqlTypes.SqlDouble
A SqlDouble value containing the total length.

Замечания

If a SqlGeography instance is closed, its length is calculated as the total length around the instance; the length of any polygon is its perimeter, and the length of a point is 0. The length of a GeometryCollection is found by calculating the sum of the lengths of all of the SqlGeography instances contained within the collection.

См. также

Справочник

SqlGeography Класс

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