Udostępnij za pośrednictwem


Metoda SqlGeography.STMPointFromText

Zwraca SqlGeography wystąpienie z reprezentacji Otwórz konsorcjum geograficzne (OGC) dobrze znanego tekstu (WKT) rozszerzony z dowolnego Z (podniesienie) i wartości M (miara) przez wystąpienie.

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 STMPointFromText ( _
    multiPointTaggedText As SqlChars, _
    srid As Integer _
) As SqlGeography
'Użycie
Dim multiPointTaggedText As SqlChars
Dim srid As Integer
Dim returnValue As SqlGeography

returnValue = SqlGeography.STMPointFromText(multiPointTaggedText, _
    srid)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography STMPointFromText(
    SqlChars multiPointTaggedText,
    int srid
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
static SqlGeography^ STMPointFromText(
    SqlChars^ multiPointTaggedText, 
    int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
static member STMPointFromText : 
        multiPointTaggedText:SqlChars * 
        srid:int -> SqlGeography 
public static function STMPointFromText(
    multiPointTaggedText : SqlChars, 
    srid : int
) : SqlGeography

Parametry

  • srid
    Typ: System.Int32
    An int expression that represents the Spatial Reference ID (SRID) of the SqlGeographyMultiPoint instance you wish to return.

Wartość zwracana

Typ: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography wartość skonstruowana z określonego reprezentacja WKT.

Uwagi

Ta metoda wygeneruje FormatException , jeśli dane wejściowe nie jest sformatowany poprawnie.