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


Метод SqlGeography.Parse

Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation.

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

Синтаксис

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

returnValue = SqlGeography.Parse(s)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography Parse(
    SqlString s
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeography^ Parse(
    SqlString s
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member Parse : 
        s:SqlString -> SqlGeography
public static function Parse(
    s : SqlString
) : SqlGeography

Параметры

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

Тип: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography value constructed from the specified WKT representation.

Замечания

The Parse method is equivalent to STGeomFromText except that it assumes a spatial reference ID (SRID) of 4326 as a parameter. The input may carry optional Z (elevation) and M (measure) values.

См. также

Справочник

SqlGeography Класс

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