STLineFromWKB (type de données geography)

Retourne une instance LineString geography à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).

Syntaxe

STLineFromWKB ( 'WKB_linestring' , SRID )

Arguments

  • WKB_linestring
    Représentation WKB de l'instance LineString geography à retourner. WKB_linestring est une expression varbinary(max).

  • SRID
    Expression int qui représente l'ID de référence spatial (SRID) de l'instance LineString geography à retourner.

Types des valeur de retour

Type de retour SQL Server :geography

Type de retour CLR :SqlGeography

Type OGC :LineString

Notes

Cette méthode lève un FormatException si l'entrée n'est pas correctement mise en forme.

Exemples

L'exemple suivant utilise la méthode STLineFromWKB() pour créer une instance geography.

DECLARE @g geography;
SET @g = geography::STLineFromWKB(0x010200000002000000D7A3703D0A975EC08716D9CEF7D34740CBA145B6F3955EC08716D9CEF7D34740, 4326);
SELECT @g.ToString();

Voir aussi

Autres ressources