Partage via


STMPointFromWKB (type de données geography)

S’applique à : SQL Server Azure SQL Database Azure SQL Managed Instance Base de données SQL dans Microsoft Fabric

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 le SRID (ID de référence spatiale) de l’instance geographyMultiPoint à retourner.

Types de retour

Type de retour SQL Server : geography

Type de retour CLR : SqlGeography

Type OGC : MultiPoint

Remarques

Cette méthode lève FormatException si l’entrée n’est pas au format approprié.

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

Méthodes geography statiques de l’OGC