STMPointFromWKB (type de données geography)

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

Syntaxe

STMPointFromWKB ( 'WKB_multipoint' , SRID )

Arguments

  • WKB_multipoint
    Représentation WKB de l'instance geographyMultiPoint à retourner. WKB_multipoint est une expression varbinary(max).

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

Types des valeurs de retour

SQL Server type de retour : geography

Type de retour CLR : SqlGeography

Type OGC : MultiPoint

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 STMPointFromWKB() pour créer une instance geography.

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

Voir aussi

Autres ressources