SqlGeography.STPointFromWKB, méthode (SqlBytes, Int32)
Retourne une instance SqlGeography Point à partir d'une représentation OGC (Open Geospatial Consortium) WKB (Well-Known Binary).
Espace de noms: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (dans Microsoft.SqlServer.Types.dll)
Syntaxe
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public static SqlGeography STPointFromWKB(
SqlBytes wkbPoint,
int srid
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
static SqlGeography^ STPointFromWKB(
SqlBytes^ wkbPoint,
int srid
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
static member STPointFromWKB :
wkbPoint:SqlBytes *
srid:int -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Shared Function STPointFromWKB (
wkbPoint As SqlBytes,
srid As Integer
) As SqlGeography
Paramètres
wkbPoint
Type: System.Data.SqlTypes.SqlBytesReprésentation WKB de l'instance SqlGeography Point à retourner.
srid
Type: System.Int32Expression int qui représente le SRID (Spatial Reference ID) de l'instance SqlGeography Point à retourner.
Valeur de retour
Type: Microsoft.SqlServer.Types.SqlGeography
Valeur SqlGeography construite à partir de l'entrée WKB spécifiée.
Notes
Cette méthode lève un FormatException si l'entrée n'est pas correctement mise en forme.
Voir aussi
SqlGeography, classe
Microsoft.SqlServer.Types, espace de noms
Retour au début