SqlGeography.STLineFromWKB, méthode (SqlBytes, Int32)
Retourne une instance SqlGeography à partir d'une représentation OGC (Open Geospatial Consortium) WKT (Well-Known Text) augmentée des valeurs Z (élévation) et M (mesure) apportées par l'instance.
Espace de noms: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (dans Microsoft.SqlServer.Types.dll)
Syntaxe
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public static SqlGeography STLineFromWKB(
SqlBytes wkbLineString,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
static SqlGeography^ STLineFromWKB(
SqlBytes^ wkbLineString,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STLineFromWKB :
wkbLineString:SqlBytes *
srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Shared Function STLineFromWKB (
wkbLineString As SqlBytes,
srid As Integer
) As SqlGeography
Paramètres
wkbLineString
Type: System.Data.SqlTypes.SqlBytesReprésentation WKT de l'instance SqlGeography LineString à retourner.
srid
Type: System.Int32Expression int qui représente l'ID de référence spatial (SRID, Spatial Reference ID) de l'instance SqlGeography LineString à retourner.
Valeur de retour
Type: Microsoft.SqlServer.Types.SqlGeography
Valeur SqlGeography construite à partir de la représentation WKT spécifiée.
Notes
Cette méthode lève une exception FormatException si l’entrée n’est pas formatée correctement.
Voir aussi
SqlGeography, classe
Microsoft.SqlServer.Types, espace de noms
Retour au début