Metoda SqlGeography.Parse
Zwraca SqlGeography wystąpienie z reprezentacji Otwórz konsorcjum geograficzne (OGC) dobrze znanego tekstu (WKT).
Przestrzeń nazw: Microsoft.SqlServer.Types
Zestaw: Microsoft.SqlServer.Types (w Microsoft.SqlServer.Types.dll)
Składnia
'Deklaracja
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Shared Function Parse ( _
s As SqlString _
) As SqlGeography
'Użycie
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
Parametry
- s
Typ: System.Data.SqlTypes.SqlString
Reprezentacja WKT SqlGeography wystąpienie do zwrotu.
Wartość zwracana
Typ: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography wartość skonstruowana z określonego reprezentacja WKT.
Uwagi
Parse Jest równoważna metoda STGeomFromText , chyba że zakłada przestrzennej odwołanie Identyfikatora (SRID) 4326 jako parametr.Dane wejściowe może prowadzić z opcjonalne (podniesienie), a wartości M (miara).